Select to view content in your preferred language

How can we disable just scroll-to-zoom and trackpad panning?

4205
5
03-13-2013 06:36 AM
DavidDoran
New Contributor
We have an ArcGIS map inline in the middle of one of our pages.
There are a number of pins on it and we want users to be able to pan around by dragging.
Unfortunately, as they scroll down the page it causes the mouse to get stuck and zoom in/out (on Windows) or scroll the map up (on Mac).

I know it's possible to disable the mouse scroll zoom in/out but how can the trackpad panning be disabled?

Cheers.
0 Kudos
5 Replies
DianaBenedict
Frequent Contributor
Not sure if this answers your question but have you looked at this help topic?

http://help.arcgis.com/en/webapi/javascript/arcgis/jshelp/intro_navigation.html
0 Kudos
DavidDoran
New Contributor
Hi Diana,

Unfortunately I've read that page many times but in version 2.7 the "superpan" trackpad navigation is default on Apple devices.
And all the options to enable/disable zooming and panning don't apply to superpan 😞
0 Kudos
derekswingley1
Deactivated User
I'm late here but we have a (currently undocumented) map constructor option called smartNavigation, which is a boolean. To turn of superpan, use:

smartNavigation: false


when creating a map. We'll get this documented.
0 Kudos
AaronCurtiss
Emerging Contributor
I'm late here but we have a (currently undocumented) map constructor option called smartNavigation, which is a boolean. To turn of superpan, use:

smartNavigation: false


when creating a map. We'll get this documented.


Thank you! I searched for this for 2 hours.

Aaron
0 Kudos
BurtChad
Deactivated User

It appears that disabling smartNavigation automatically enables scrollWheelZoom and it cannot be disabled by either map init options or disableScrollWheelZoom(). Without the ability to disable scroll hijacking we can't use esri maps in our scrollable pages.

0 Kudos