Disable wheel scroll zooming with ArcGIS Javascript API 4.11 The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Disabling ArcGIS Server web adf calls when zooming with a mouse wheel?Leaflet mouse wheel zoom only after click on mapHow to disable zooming with scroll in OpenLayers2Leaflet: Scroll wheel controlling map zoom and not drop down menuCartoDB Mouse Scroll Wheel not ZoomingTurning off the scroll-to-zoom functionality in CartoDBDisabling mouse wheel zoom using ArcGIS API for JavaScript?Zoom (with mouse scroll wheel) into specific area centred by the mouse cursor in MapInfo?Zooming into center of map on load of ArcGIS API for JavaScript 4?How to make OpenLayers 3 behave like Google Maps when using mouse scroll

how can a perfect fourth interval be considered either consonant or dissonant?

Is every episode of "Where are my Pants?" identical?

TDS update packages don't remove unneeded items

One-dimensional Japanese puzzle

Did the UK government pay "millions and millions of dollars" to try to snag Julian Assange?

Using `min_active_rowversion` for global temporary tables

Can withdrawing asylum be illegal?

Simulating Exploding Dice

Homework question about an engine pulling a train

Why are PDP-7-style microprogrammed instructions out of vogue?

Word for: a synonym with a positive connotation?

Why doesn't a hydraulic lever violate conservation of energy?

Is it ok to offer lower paid work as a trial period before negotiating for a full-time job?

Windows 10: How to Lock (not sleep) laptop on lid close?

How to design a circuit to convert 100 mV and 50 Hz Sine wave to square wave?

Can a flute soloist sit?

What to do when moving next to a bird sanctuary with a loosely-domesticated cat?

Why don't hard Brexiteers insist on a hard border to prevent illegal immigration after Brexit?

Word to describe a time interval

Student Loan from years ago pops up and is taking my salary

What other Star Trek series did the main TNG cast show up in?

Is 'stolen' appropriate word?

What can I do if neighbor is blocking my solar panels intentionally?

What force causes entropy to increase?



Disable wheel scroll zooming with ArcGIS Javascript API 4.11



The 2019 Stack Overflow Developer Survey Results Are In
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Disabling ArcGIS Server web adf calls when zooming with a mouse wheel?Leaflet mouse wheel zoom only after click on mapHow to disable zooming with scroll in OpenLayers2Leaflet: Scroll wheel controlling map zoom and not drop down menuCartoDB Mouse Scroll Wheel not ZoomingTurning off the scroll-to-zoom functionality in CartoDBDisabling mouse wheel zoom using ArcGIS API for JavaScript?Zoom (with mouse scroll wheel) into specific area centred by the mouse cursor in MapInfo?Zooming into center of map on load of ArcGIS API for JavaScript 4?How to make OpenLayers 3 behave like Google Maps when using mouse scroll



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















I want to disable wheel scroll zooming so the viewer can scroll down the page without losing the cursor in the map.



But this code freezes scrolling altogether, so when the cursor is over the map, there is no scrolling at all.



view.on("mouse-wheel", function(event) 
// disable mouse wheel scroll zooming on the view
event.stopPropagation();
);


Codepen is https://codepen.io/nadinetrahan/full/VNYxRg










share|improve this question









New contributor




Nadine is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.


























    1















    I want to disable wheel scroll zooming so the viewer can scroll down the page without losing the cursor in the map.



    But this code freezes scrolling altogether, so when the cursor is over the map, there is no scrolling at all.



    view.on("mouse-wheel", function(event) 
    // disable mouse wheel scroll zooming on the view
    event.stopPropagation();
    );


    Codepen is https://codepen.io/nadinetrahan/full/VNYxRg










    share|improve this question









    New contributor




    Nadine is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.






















      1












      1








      1








      I want to disable wheel scroll zooming so the viewer can scroll down the page without losing the cursor in the map.



      But this code freezes scrolling altogether, so when the cursor is over the map, there is no scrolling at all.



      view.on("mouse-wheel", function(event) 
      // disable mouse wheel scroll zooming on the view
      event.stopPropagation();
      );


      Codepen is https://codepen.io/nadinetrahan/full/VNYxRg










      share|improve this question









      New contributor




      Nadine is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      I want to disable wheel scroll zooming so the viewer can scroll down the page without losing the cursor in the map.



      But this code freezes scrolling altogether, so when the cursor is over the map, there is no scrolling at all.



      view.on("mouse-wheel", function(event) 
      // disable mouse wheel scroll zooming on the view
      event.stopPropagation();
      );


      Codepen is https://codepen.io/nadinetrahan/full/VNYxRg







      zoom arcgis-javascript-api-4 disable






      share|improve this question









      New contributor




      Nadine is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question









      New contributor




      Nadine is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question








      edited Apr 9 at 12:46









      Katah

      782510




      782510






      New contributor




      Nadine is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked Apr 6 at 21:30









      NadineNadine

      61




      61




      New contributor




      Nadine is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Nadine is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Nadine is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




















          1 Answer
          1






          active

          oldest

          votes


















          1














          Try using the code example from here instead:



          view.surface.addEventListener("wheel", function(event) 
          event.stopImmediatePropagation();
          , true);


          Demo of the two here.






          share|improve this answer























          • Where is view.surface documented?

            – kenbuja
            yesterday











          • Thanks Gavin, that does continue to scroll over the map if you start the scroll out of it. But if you stop scrolling on the map, then start again, the zoom kicks in.

            – Nadine
            6 hours ago











          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "79"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );






          Nadine is a new contributor. Be nice, and check out our Code of Conduct.









          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f317994%2fdisable-wheel-scroll-zooming-with-arcgis-javascript-api-4-11%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          Try using the code example from here instead:



          view.surface.addEventListener("wheel", function(event) 
          event.stopImmediatePropagation();
          , true);


          Demo of the two here.






          share|improve this answer























          • Where is view.surface documented?

            – kenbuja
            yesterday











          • Thanks Gavin, that does continue to scroll over the map if you start the scroll out of it. But if you stop scrolling on the map, then start again, the zoom kicks in.

            – Nadine
            6 hours ago















          1














          Try using the code example from here instead:



          view.surface.addEventListener("wheel", function(event) 
          event.stopImmediatePropagation();
          , true);


          Demo of the two here.






          share|improve this answer























          • Where is view.surface documented?

            – kenbuja
            yesterday











          • Thanks Gavin, that does continue to scroll over the map if you start the scroll out of it. But if you stop scrolling on the map, then start again, the zoom kicks in.

            – Nadine
            6 hours ago













          1












          1








          1







          Try using the code example from here instead:



          view.surface.addEventListener("wheel", function(event) 
          event.stopImmediatePropagation();
          , true);


          Demo of the two here.






          share|improve this answer













          Try using the code example from here instead:



          view.surface.addEventListener("wheel", function(event) 
          event.stopImmediatePropagation();
          , true);


          Demo of the two here.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered yesterday









          GavinRGavinR

          1,6661812




          1,6661812












          • Where is view.surface documented?

            – kenbuja
            yesterday











          • Thanks Gavin, that does continue to scroll over the map if you start the scroll out of it. But if you stop scrolling on the map, then start again, the zoom kicks in.

            – Nadine
            6 hours ago

















          • Where is view.surface documented?

            – kenbuja
            yesterday











          • Thanks Gavin, that does continue to scroll over the map if you start the scroll out of it. But if you stop scrolling on the map, then start again, the zoom kicks in.

            – Nadine
            6 hours ago
















          Where is view.surface documented?

          – kenbuja
          yesterday





          Where is view.surface documented?

          – kenbuja
          yesterday













          Thanks Gavin, that does continue to scroll over the map if you start the scroll out of it. But if you stop scrolling on the map, then start again, the zoom kicks in.

          – Nadine
          6 hours ago





          Thanks Gavin, that does continue to scroll over the map if you start the scroll out of it. But if you stop scrolling on the map, then start again, the zoom kicks in.

          – Nadine
          6 hours ago










          Nadine is a new contributor. Be nice, and check out our Code of Conduct.









          draft saved

          draft discarded


















          Nadine is a new contributor. Be nice, and check out our Code of Conduct.












          Nadine is a new contributor. Be nice, and check out our Code of Conduct.











          Nadine is a new contributor. Be nice, and check out our Code of Conduct.














          Thanks for contributing an answer to Geographic Information Systems Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid …


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f317994%2fdisable-wheel-scroll-zooming-with-arcgis-javascript-api-4-11%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Magento 1.9 observer on only new product added ( no updated product )Admin Create New Order ObserverObserver checkout_cart_product_add_after get product quantity in cartHow can I differentiate between product creation and saving existing products?How to get the original price Product SaveBeforeMagento Observer for Admin Sales order Address updateHow do i get quantity in a product_save_after event observer magento2?Using observer event to get updated customer infoSave product observer - detect availabilityEvent not triggered when new product added in admin : Magento 2magento 1.9 observer on quantity product change

          Does an object always see its latest internal state irrespective of thread? The 2019 Stack Overflow Developer Survey Results Are InDoes a finally block always get executed in Java?Java: serial thread confinement questionJava difference between fixed threadpool and scheduled threadpoolJackrabbit and concurrent modificationHow to stop a Runnable scheduled for repeated execution after a certain number of executionsMultiple threads accessing inner classHow can a loop be completed by two thread? say loop from count=1 to count=4 by ist thread and count =5 to 8 by 2nd thread?If I keep a reference to a Runnable, when does the Thread it ran on get released?How to stop a schedule ScheduledExecutorServiceHow to implement a singleThreadedScheduledExcecutor in wildfly

          What CSS properties can the br tag have?Will whitespace or wrap be ignored between two block elements in HTML?Set cellpadding and cellspacing in CSS?Change an HTML5 input's placeholder color with CSSIs this possible in p tag without using span or anything new in html tag?jQuery + Regex to change CSS of first couple of Wordscentering an image while text covers both canvas (left and right)Position button material designsubmit button doesn't work with html codejavascript summary my checked inputHow can I create this effect on a slider?Changing JQuery to affect colour of button, not background?