Select to view content in your preferred language

How to stop mouse wheel from changing HSlider value?

1045
2
Jump to solution
07-23-2012 01:33 PM
LeiZhou
Deactivated User
I create a HSlider to control the transparecy of a map layer.  The Slider works, but everytime after I release the thumb, if I don't click on the map and go ahead to scroll the mouse wheel, it will change the transparency value immediately.  I have to click on somewhere else first, then I can zoom in or zoom out without changing the HSlider value.  Is there any parmater that I can stop mouse wheel from changing HSlider value? Thanks!
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
MattiasEkström
Frequent Contributor
On your slider, try set the mouseFocusEnabled property to false
like: <s:HSlider id="slider" mouseFocusEnabled="false" .............../>

I had a problem just like yours that I solved this way...

View solution in original post

0 Kudos
2 Replies
MattiasEkström
Frequent Contributor
On your slider, try set the mouseFocusEnabled property to false
like: <s:HSlider id="slider" mouseFocusEnabled="false" .............../>

I had a problem just like yours that I solved this way...
0 Kudos
LeiZhou
Deactivated User
Thanks a lot!

I create a HSlider to control the transparecy of a map layer.  The Slider works, but everytime after I release the thumb, if I don't click on the map and go ahead to scroll the mouse wheel, it will change the transparency value immediately.  I have to click on somewhere else first, then I can zoom in or zoom out without changing the HSlider value.  Is there any parmater that I can stop mouse wheel from changing HSlider value? Thanks!
0 Kudos