Merge pull request #15268 from light-and-ray/handle_0_wheel_deltaX

handle 0 wheel deltaY
This commit is contained in:
AUTOMATIC1111 2024-03-16 18:25:00 +03:00 committed by GitHub
commit 874809e0ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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