Unintentional zooming with scroll wheel in embedded map

237
1
08-31-2018 01:04 AM
JesperMark
New Contributor

Hi all,

I'm developing a map which is embedded in a scrollable page. The users do sometimes unintentionally zoom in the map while scrolling the page (by using the mouse scroll wheel, that is). I'm trying to sort out which capabilities I have to circumvent this behaviour, and would like your input.

  1. Is it possible to somehow customize another hotkey combination to zooming, e.g. by combining shift+scroll wheel to zoom?
  2. I thought of disabling the scroll wheel navigation on map load, and when actually clicking or interacting with the map, the scroll wheel would be activated permanently. This would at least avoid scrolling initially but not after the first map interaction.

Any suggestions to this issue would be highly appreciated.

JS API 3.x

Best

Jesper

0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Esteemed Contributor

Jesper,

   Have you tried to blur() (un-focus) the map when the mouse leaves the map?

0 Kudos