fix(interaction): panemoveable prop on touch devices
This commit is contained in:
@@ -234,8 +234,8 @@ const ZoomPane = ({
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// if the pane is not movable, we prevent dragging it with the mouse
|
// if the pane is not movable, we prevent dragging it with mousestart or touchstart
|
||||||
if (!paneMoveable && event.type === 'mousedown') {
|
if (!paneMoveable && (event.type === 'mousedown' || event.type === 'touchstart')) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user