Merge pull request #2431 from cavenel/master

Fix zoom out when wheel event.deltaY is zero
This commit is contained in:
Ian Gilman 2023-11-13 09:53:42 -08:00 committed by GitHub
commit c92f8ad65d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2070,7 +2070,7 @@
// y-index scrolling.
// event.deltaMode: 0=pixel, 1=line, 2=page
// TODO: Deltas in pixel mode should be accumulated then a scroll value computed after $.DEFAULT_SETTINGS.pixelsPerWheelLine threshold reached
nDelta = event.deltaY < 0 ? 1 : -1;
nDelta = event.deltaY ? (event.deltaY < 0 ? 1 : -1) : 0;
eventInfo = {
originalEvent: event,