mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-03-03 04:24:54 +08:00
addEventListener {passive: false} (#16575)
This commit is contained in:
parent
f31faf6f14
commit
59481435f4
@ -816,7 +816,7 @@ onUiLoaded(async() => {
|
||||
// Increase or decrease brush size based on scroll direction
|
||||
adjustBrushSize(elemId, e.deltaY);
|
||||
}
|
||||
});
|
||||
}, {passive: false});
|
||||
|
||||
// Handle the move event for pan functionality. Updates the panX and panY variables and applies the new transform to the target element.
|
||||
function handleMoveKeyDown(e) {
|
||||
|
@ -104,7 +104,7 @@ var contextMenuInit = function() {
|
||||
e.preventDefault();
|
||||
}
|
||||
});
|
||||
});
|
||||
}, {passive: false});
|
||||
});
|
||||
eventListenerApplied = true;
|
||||
|
||||
|
@ -124,7 +124,7 @@
|
||||
} else {
|
||||
R.screenX = evt.changedTouches[0].screenX;
|
||||
}
|
||||
});
|
||||
}, {passive: false});
|
||||
});
|
||||
|
||||
resizeHandle.addEventListener('dblclick', onDoubleClick);
|
||||
|
Loading…
Reference in New Issue
Block a user