mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-06-07 21:20:49 +00:00
handle 0 wheel deltaX
This commit is contained in:
parent
3e0146f9bd
commit
c364b60776
@ -793,7 +793,7 @@ onUiLoaded(async() => {
|
||||
|
||||
targetElement.addEventListener("wheel", e => {
|
||||
// change zoom level
|
||||
const operation = e.deltaY > 0 ? "-" : "+";
|
||||
const operation = (e.deltaY || -e.wheelDelta) > 0 ? "-" : "+";
|
||||
changeZoomLevel(operation, e);
|
||||
|
||||
// Handle brush size adjustment with ctrl key pressed
|
||||
|
Loading…
Reference in New Issue
Block a user