fix(system): dont break touch pan with panOnDrag is an array

This commit is contained in:
moklick
2024-04-30 16:41:13 +02:00
parent 5c57be6f54
commit a9dfd45b4f

View File

@@ -76,11 +76,7 @@ export function createFilter({
}
// if the pane is only movable using allowed clicks
if (
Array.isArray(panOnDrag) &&
!panOnDrag.includes(event.button) &&
(event.type === 'mousedown' || event.type === 'touchstart')
) {
if (Array.isArray(panOnDrag) && !panOnDrag.includes(event.button) && event.type === 'mousedown') {
return false;
}