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;
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
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.
add a comment |
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
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.
add a comment |
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
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
zoom arcgis-javascript-api-4 disable
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.
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.
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Try using the code example from here instead:
view.surface.addEventListener("wheel", function(event)
event.stopImmediatePropagation();
, true);
Demo of the two here.
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Try using the code example from here instead:
view.surface.addEventListener("wheel", function(event)
event.stopImmediatePropagation();
, true);
Demo of the two here.
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
add a comment |
Try using the code example from here instead:
view.surface.addEventListener("wheel", function(event)
event.stopImmediatePropagation();
, true);
Demo of the two here.
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
add a comment |
Try using the code example from here instead:
view.surface.addEventListener("wheel", function(event)
event.stopImmediatePropagation();
, true);
Demo of the two here.
Try using the code example from here instead:
view.surface.addEventListener("wheel", function(event)
event.stopImmediatePropagation();
, true);
Demo of the two here.
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
add a comment |
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
add a comment |
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.
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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