mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-01-19 17:21:50 +03:00
Changed name of config parameter to include 'MS' to suggest milliseconds.
This commit is contained in:
parent
19c6179533
commit
ad4bbb9daf
@ -255,7 +255,7 @@
|
||||
* @property {Boolean} [preserveImageSizeOnResize=false]
|
||||
* Set to true to have the image size preserved when the viewer is resized. This requires autoResize=true (default).
|
||||
*
|
||||
* @property {Number} [minScrollDelta=3]
|
||||
* @property {Number} [minScrollDeltaMS=3]
|
||||
* Number of milliseconds between canvas-scroll events. This value helps normalize the rate of canvas-scroll
|
||||
* events between different devices, causing the faster devices to slow down enough to make the zoom control
|
||||
* more manageable.
|
||||
@ -1008,7 +1008,7 @@ if (typeof define === 'function' && define.amd) {
|
||||
pixelsPerWheelLine: 40,
|
||||
autoResize: true,
|
||||
preserveImageSizeOnResize: false, // requires autoResize=true
|
||||
minScrollDelta: 3,
|
||||
minScrollDeltaMS: 3,
|
||||
|
||||
//DEFAULT CONTROL SETTINGS
|
||||
showSequenceControl: true, //SEQUENCE
|
||||
|
@ -2747,7 +2747,7 @@ function onCanvasScroll( event ) {
|
||||
* this one and wait for the next event. */
|
||||
thisScroll = new Date().getTime();
|
||||
deltaScroll = thisScroll - lastScroll;
|
||||
if (deltaScroll > this.minScrollDelta) {
|
||||
if (deltaScroll > this.minScrollDeltaMS) {
|
||||
lastScroll = thisScroll;
|
||||
|
||||
if ( !event.preventDefaultAction && this.viewport ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user