Can I change the sensitivity of scroll zooming?

1968
2
Jump to solution
03-30-2017 07:40 AM
DavidMillican
New Contributor II

I have a feature in my application that triggers some change when crossing a threshold for scale. I wanted to add a hysteresis to this threshold so that it wasn't so sensitive to the zoom. The problem is that the amount that is zoomed each time the scroll wheel is moved is not the same. It doesn't even appear to be a uniform percentage of change that I can tell. So what I was wondering was if I can set the amount of change to scale that occurs on each scroll. Is this possible? 

0 Kudos
1 Solution

Accepted Solutions
dotMorten_esri
Esri Frequent Contributor

> It doesn't even appear to be a uniform percentage of change that I can tell.

The zoom should always be 0.5x (0r 2x for zooming out) of the current scale. Note though that if you do multiple quick wheel zooms, it's 2x of where you started the next zoom.

Currently there's no way to override the 2x factor, but something we are considering to expose.

View solution in original post

2 Replies
dotMorten_esri
Esri Frequent Contributor

> It doesn't even appear to be a uniform percentage of change that I can tell.

The zoom should always be 0.5x (0r 2x for zooming out) of the current scale. Note though that if you do multiple quick wheel zooms, it's 2x of where you started the next zoom.

Currently there's no way to override the 2x factor, but something we are considering to expose.

DavidMillican
New Contributor II

So 0.5x factor for zooming in and 2x for zooming out? I may be able to work with that then. Thanks.

0 Kudos