Compare commits

...

4 Commits

Author SHA1 Message Date
Christophe Avenel
426594a841
Merge c1038af37d into 89ae9c1376 2023-11-08 17:52:54 +00:00
Christophe Avenel
c1038af37d
Revert "Add debounce of pan events"
This reverts commit e836ffcc61.
2023-11-08 18:52:05 +01:00
Christophe Avenel
e836ffcc61 Add debounce of pan events
Group pan events together if needed, in order to avoid lag if drawing of layers takes more time than it should.
2023-10-31 15:38:38 +01:00
Christophe Avenel
810987210c
Fix zoom out when wheel event.deltaY is zero
Don't apply zoom in or zoom out when deltaY is zero on wheel events.
Should fix https://github.com/openseadragon/openseadragon/issues/947 and not make OpenSeadragon zoom out when scrolling horizontally on a touchpad
2023-10-25 09:26:48 +02:00

View File

@ -2070,7 +2070,7 @@
// y-index scrolling. // y-index scrolling.
// event.deltaMode: 0=pixel, 1=line, 2=page // 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 // 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 = { eventInfo = {
originalEvent: event, originalEvent: event,