fix(interaction): panemoveable prop on touch devices

This commit is contained in:
moklick
2021-03-10 12:50:54 +01:00
parent 359c1a13de
commit 364111a7fe
+2 -2
View File
@@ -234,8 +234,8 @@ const ZoomPane = ({
return false;
}
// if the pane is not movable, we prevent dragging it with the mouse
if (!paneMoveable && event.type === 'mousedown') {
// if the pane is not movable, we prevent dragging it with mousestart or touchstart
if (!paneMoveable && (event.type === 'mousedown' || event.type === 'touchstart')) {
return false;
}