From ad4bbb9daf4bebb68d81e12de2791dd2c63148db Mon Sep 17 00:00:00 2001 From: Grant Echols Date: Tue, 27 Oct 2015 15:33:39 -0600 Subject: [PATCH] Changed name of config parameter to include 'MS' to suggest milliseconds. --- src/openseadragon.js | 4 ++-- src/viewer.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/openseadragon.js b/src/openseadragon.js index 77806b57..ff677fdc 100644 --- a/src/openseadragon.js +++ b/src/openseadragon.js @@ -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 diff --git a/src/viewer.js b/src/viewer.js index a94b59db..3005a850 100644 --- a/src/viewer.js +++ b/src/viewer.js @@ -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 ) {