fix(system): dont break touch pan with panOnDrag is an array
This commit is contained in:
@@ -76,11 +76,7 @@ export function createFilter({
|
|||||||
}
|
}
|
||||||
|
|
||||||
// if the pane is only movable using allowed clicks
|
// if the pane is only movable using allowed clicks
|
||||||
if (
|
if (Array.isArray(panOnDrag) && !panOnDrag.includes(event.button) && event.type === 'mousedown') {
|
||||||
Array.isArray(panOnDrag) &&
|
|
||||||
!panOnDrag.includes(event.button) &&
|
|
||||||
(event.type === 'mousedown' || event.type === 'touchstart')
|
|
||||||
) {
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user