Fix for robustness when navigating quickly through automations. dragOffset can sometimes not be initialised before moving the mouse

This commit is contained in:
Dean 2024-10-31 16:54:56 +00:00
parent 472830c052
commit 81d01bc0cf
1 changed files with 1 additions and 1 deletions

View File

@ -222,7 +222,7 @@
y, y,
})) }))
if (down && !$view.dragging) { if (down && !$view.dragging && dragOffset) {
contentPos.update(state => ({ contentPos.update(state => ({
...state, ...state,
x: x - dragOffset[0], x: x - dragOffset[0],