Hi all,
I'm working on a pretty nifty project using the ArcGIS API, and am having a quite a bit of success so far. Awesome stuff!
My need is to disable Apple mouse/trackpad scrolling. Some users are reporting when they scroll over the map, it zooms very quickly and would prefer to disable it. I'm using ArcGIS 4.0 on a 2D map. I saw some API things for the 3.x versions that disable smartNavigation and things, but that is not working in 4.0.
Any tips on how I can disable all apple mouse trackpad and scrolling in 4.0? Thanks!
Solved! Go to Solution.
Hi,
We don't have a proper API for gestures at the moment but you can intercept and stop the event like this:
view.surface.addEventListener("wheel", function(event) { event.stopImmediatePropagation(); }, true);
Hi,
We don't have a proper API for gestures at the moment but you can intercept and stop the event like this:
view.surface.addEventListener("wheel", function(event) { event.stopImmediatePropagation(); }, true);
Beautiful. Thanks!!