mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-09-05 00:20:44 +00:00
addEventListener {passive: false}
while passive is false by default and we do call .preventDefault() so it has to be false the Chrome browser shows vebros level suggestions which annoys some users
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user