articodeltd / angular-cesium

JavaScript library for creating map based web apps using Cesium and Angular
https://github.com/articodeltd/angular-cesium/settings/pages
MIT License
178 stars 93 forks source link

Fix drag mistaken for long press #397

Closed shayb-datumate closed 3 years ago

shayb-datumate commented 3 years ago

Fix long press events triggering event when cursor is moving away from the start position, like when the user pans the map. I previously fixed it by stopping the long press event when mouse move event was happening, but since in tablets we use fingers and not a mouse cursor, it's very likely to trigger mouse move accidentally. Added a distance threshold of 10px which is standard for these cases (from what I saw on the web).