Is there a way to create a click event which will not fire when a drag is performed?
You can use
map.addEventListener("single-tap", function(e) { // your code without the target node condition })
...instead, which will not count dragging and releasing the mouse as clicks. Note that you use map.addEventListener instead of map.element.addEventListener here, so no element as these events are from MapKit directly and no DOM events. Kinda confusing but that works :)
Post
Replies
Boosts
Views
Activity
Any updates on this?
Why does dragging the map and then releasing the mouse button count as a click event?
Also, I can't get "single-tap" to work with Mouse inputs. I assume it is for touch only (?)
We need proper scaling options...
Same here. My webview application is crashing with the same error and the reason seems to be that it runs out of vram. This happens at random when WebGL scenes are being loaded, sometimes it does, sometimes it does not. I am not getting a warning though. It is working fine in the mac simulator, where there probably is more vram available
Same issue in Webkit Webview. Please FIX this :( Or at least add some kind of way to turn it off for the webview in an xcode application.