Skip to content

Commit 38fef37

Browse files
committed
Fix panning touchmove
1 parent 3b5fab8 commit 38fef37

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/plots/gl2d/camera.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ function createCamera(scene) {
6565
handleInteraction(1, xy[0], xy[1]);
6666
});
6767
element.addEventListener('touchmove', function(ev) {
68+
ev.preventDefault()
6869
var xy = mouseOffset(ev.changedTouches[0], element);
6970
handleInteraction(1, xy[0], xy[1]);
7071
});

0 commit comments

Comments
 (0)