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).
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).