# Prevent scrollViewer onWheel event from "propagating" to camera zoom

**URL:** <https://forum.babylonjs.com/t/prevent-scrollviewer-onwheel-event-from-propagating-to-camera-zoom/30969>\
**Category:** Questions\
**Tags:** gui, camera, gui-scrollviewer\
**Created:** [June 1, 2022, 7:13pm UTC](https://forum.babylonjs.com/t/prevent-scrollviewer-onwheel-event-from-propagating-to-camera-zoom/30969 "2022-06-01T19:13:36Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![ajp](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/ajp/32/9504_2.png) [@ajp](https://forum.babylonjs.com/u/ajp)\
**Post date:** [June 2, 2022, 11:06am UTC](https://forum.babylonjs.com/t/prevent-scrollviewer-onwheel-event-from-propagating-to-camera-zoom/30969/7 "2022-06-02T11:06:30Z")

</div>

> [@mawa](#):
>
> So did you actually fix it with this? Else, I would have one more solution (very similar I believe) that has proved to work both on desktop and mobile.

Thanks @mawa actually it’s not fixed as on mobile:

a) the [scroll of the scrollViewer does not work](https://forum.babylonjs.com/t/scrolling-scrollviewer-seems-to-not-work-on-mobile-difference-between-mobile-and-desktop-gestures/30972/4) so  
b) once that’s working then the panning (moving in Y axis?) will need to be avoided (that’s triggered for the camera when you use two fingers to move up/down) and  
c) if the pinch zoom was somehow to be used to do something to control the scrollViewer on mobile (though I don’t know what that would be) then these events would also need to be disabled somehow.

Sorry this is a bit messier than I’d like it to be so I’m happy to provide any clarifications and I welcome any suggestions! 🙂

---

_[View the full topic](https://forum.babylonjs.com/t/prevent-scrollviewer-onwheel-event-from-propagating-to-camera-zoom/30969)._
