From a9dfd45b4f64d031f54eb3310f6f756d90f4d498 Mon Sep 17 00:00:00 2001 From: moklick Date: Tue, 30 Apr 2024 16:41:13 +0200 Subject: [PATCH] fix(system): dont break touch pan with panOnDrag is an array --- packages/system/src/xypanzoom/filter.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/system/src/xypanzoom/filter.ts b/packages/system/src/xypanzoom/filter.ts index 4cde936b..105499d7 100644 --- a/packages/system/src/xypanzoom/filter.ts +++ b/packages/system/src/xypanzoom/filter.ts @@ -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; }