mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2025-12-02 01:52:12 +00:00
try fix dragging on touch devices
This commit is contained in:
@@ -598,7 +598,10 @@ export class GPXLayer {
|
||||
}
|
||||
|
||||
waypointLayerOnMouseMove(e: mapboxgl.MapMouseEvent | mapboxgl.MapTouchEvent) {
|
||||
if (!this.draggedWaypointIndex || e.point.equals(this.draggingStartingPosition)) {
|
||||
if (
|
||||
!this.draggedWaypointIndex ||
|
||||
(e.type === 'mousemove' && e.point.equals(this.draggingStartingPosition))
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user