# ScrollViewer: Scroll on mouse drag

**URL:** <https://forum.babylonjs.com/t/scrollviewer-scroll-on-mouse-drag/12205>\
**Category:** Questions\
**Tags:** gui\
**Created:** [July 3, 2020, 4:19pm UTC](https://forum.babylonjs.com/t/scrollviewer-scroll-on-mouse-drag/12205 "2020-07-03T16:19:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thomas1664](https://avatars.discourse-cdn.com/v4/letter/t/f1d935/32.png) [@Thomas1664](https://forum.babylonjs.com/u/Thomas1664)\
**Post date:** [July 3, 2020, 4:19pm UTC](https://forum.babylonjs.com/t/scrollviewer-scroll-on-mouse-drag/12205/1 "2020-07-03T16:19:31Z")

</div>

I want to trigger scrolling in scrollViewer when mouse button is hold and cursor is moved around. But I can’t find what I am looking for in the API docs. Has anyone an idea on how it works?

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [July 3, 2020, 4:35pm UTC](https://forum.babylonjs.com/t/scrollviewer-scroll-on-mouse-drag/12205/2 "2020-07-03T16:35:16Z")

</div>

you could probably fake it by calling conrol.onWheelObservable.trigger(new Vector2(xshift, yshift)); ???
