# ScrollViewer - MouseWheel not working

**URL:** https://forum.babylonjs.com/t/scrollviewer-mousewheel-not-working/24988
**Category:** Questions
**Created:** [November 3, 2021, 3:47pm UTC](https://forum.babylonjs.com/t/scrollviewer-mousewheel-not-working/24988 "2021-11-03T15:47:13Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![jellix](https://avatars.discourse-cdn.com/v4/letter/j/46a35a/32.png) [@jellix](https://forum.babylonjs.com/u/jellix)
#### Post date: [November 3, 2021, 3:47pm UTC](https://forum.babylonjs.com/t/scrollviewer-mousewheel-not-working/24988/1 "2021-11-03T15:47:13Z")

</div>

Hi,

I have a ScrollViewer in my screne (and it’s working well). But ​the mouse-wheel isn’t recognized.  
Is there something like a debug-function so see if my wheel is interacting with the ScrollViewer?

And onother question: Is there a way to set the scroll-position? I would like to click on a mesh and the ScrollViewer should scroll down a bit.

Thanks!

---

<div class="post-metadata">

### Author: ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)
#### Post date: [November 3, 2021, 3:53pm UTC](https://forum.babylonjs.com/t/scrollviewer-mousewheel-not-working/24988/2 "2021-11-03T15:53:26Z")

</div>

pinging @msDestiny14

---

<div class="post-metadata">

### Author: ![msDestiny14](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/msdestiny14/32/9572_2.png) [@msDestiny14](https://forum.babylonjs.com/u/msDestiny14)
#### Post date: [November 4, 2021, 1:53pm UTC](https://forum.babylonjs.com/t/scrollviewer-mousewheel-not-working/24988/3 "2021-11-04T13:53:49Z")

</div>

Hey @jellix would you be able to create a playground for this?

For debugging questions there are lots of observables you can add. [The Babylon GUI | Babylon.js Documentation](https://doc.babylonjs.com/divingDeeper/gui/gui#events) Inside those you can put console.log()

Finally the last thing I’m going to add is this cool scroll viewer demo which I know has mouse wheel input. [https://playground.babylonjs.com/#HJZBRG#219](https://playground.babylonjs.com/#HJZBRG#219) Hope this steers you in the right direction. When you have a playground you can send I can try to give better help for your specific case. 🙂

---

<div class="post-metadata">

### Author: ![msDestiny14](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/msdestiny14/32/9572_2.png) [@msDestiny14](https://forum.babylonjs.com/u/msDestiny14)
#### Post date: [November 4, 2021, 1:53pm UTC](https://forum.babylonjs.com/t/scrollviewer-mousewheel-not-working/24988/4 "2021-11-04T13:53:58Z")

</div>



---

<div class="post-metadata">

### Author: ![jellix](https://avatars.discourse-cdn.com/v4/letter/j/46a35a/32.png) [@jellix](https://forum.babylonjs.com/u/jellix)
#### Post date: [November 4, 2021, 3:54pm UTC](https://forum.babylonjs.com/t/scrollviewer-mousewheel-not-working/24988/5 "2021-11-04T15:54:44Z")

</div>

Thanks so far … it always works in the playground.  
[https://playground.babylonjs.com/#4B9149](https://playground.babylonjs.com/#4B9149)

In my project the scrollwheel still doesn’t work. I’ve reduced everything into a minimal new local project … still no scrollWheel … so I think that I either load a wrong babylon or GUI js-file or something is missing.  
If somebody is interested … I’ve uplaoded my project setup here: [https://labs.mangoblau.com/babylon/noscroll.zip](https://labs.mangoblau.com/babylon/noscroll.zip) (849 kb)

Would be nice to know why setup is not working linke the playground 🙂

best regards

Rainer

---

<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: [November 4, 2021, 4:36pm UTC](https://forum.babylonjs.com/t/scrollviewer-mousewheel-not-working/24988/6 "2021-11-04T16:36:37Z")

</div>

Just a side note, are you well using our latest preview as the playground does ?

---

<div class="post-metadata">

### Author: ![jellix](https://avatars.discourse-cdn.com/v4/letter/j/46a35a/32.png) [@jellix](https://forum.babylonjs.com/u/jellix)
#### Post date: [November 5, 2021, 7:53am UTC](https://forum.babylonjs.com/t/scrollviewer-mousewheel-not-working/24988/7 "2021-11-05T07:53:07Z")

</div>

Obviously I didn’t! 🙂  
Now it works!  
Thanks a lot!

---

<div class="post-metadata">

### Author: ![msDestiny14](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/msdestiny14/32/9572_2.png) [@msDestiny14](https://forum.babylonjs.com/u/msDestiny14)
#### Post date: [November 5, 2021, 1:40pm UTC](https://forum.babylonjs.com/t/scrollviewer-mousewheel-not-working/24988/8 "2021-11-05T13:40:08Z")

</div>


