# Can I handle mouse wheel event?

**URL:** <https://forum.wixstudio.com/t/can-i-handle-mouse-wheel-event/25026>\
**Category:** Ask the community\
**Tags:** question, code\
**Created:** [August 2, 2017, 12:18pm UTC](https://forum.wixstudio.com/t/can-i-handle-mouse-wheel-event/25026 "2017-08-02T12:18:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![haneulgorae](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/haneulgorae/32/756_2.png) [@haneulgorae](https://forum.wixstudio.com/u/haneulgorae)\
**Post date:** [August 2, 2017, 12:18pm UTC](https://forum.wixstudio.com/t/can-i-handle-mouse-wheel-event/25026/1 "2017-08-02T12:18:13Z")

</div>

Can I handle mouse wheel event?

---

<div class="post-metadata">

**Author:** ![yoav-wix](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/yoav-wix/32/674_2.png) [@yoav-wix](https://forum.wixstudio.com/u/yoav-wix)\
**Post date:** [August 2, 2017, 3:17pm UTC](https://forum.wixstudio.com/t/can-i-handle-mouse-wheel-event/25026/2 "2017-08-02T15:17:10Z")

</div>

Hi,

You cannot listen directly on mouse wheel events.

Instead, most Wix Elements have onViewportEnter and onViewportLeave events that you can use to react to when the page is scrolled to view and element or scrolls such that an element is not in the current viewport.
