mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-02-08 02:49:22 +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]
|
* @property {Boolean} [preserveImageSizeOnResize=false]
|
||||||
* Set to true to have the image size preserved when the viewer is resized. This requires autoResize=true (default).
|
* 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
|
* 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
|
* events between different devices, causing the faster devices to slow down enough to make the zoom control
|
||||||
* more manageable.
|
* more manageable.
|
||||||
@ -1008,7 +1008,7 @@ if (typeof define === 'function' && define.amd) {
|
|||||||
pixelsPerWheelLine: 40,
|
pixelsPerWheelLine: 40,
|
||||||
autoResize: true,
|
autoResize: true,
|
||||||
preserveImageSizeOnResize: false, // requires autoResize=true
|
preserveImageSizeOnResize: false, // requires autoResize=true
|
||||||
minScrollDelta: 3,
|
minScrollDeltaMS: 3,
|
||||||
|
|
||||||
//DEFAULT CONTROL SETTINGS
|
//DEFAULT CONTROL SETTINGS
|
||||||
showSequenceControl: true, //SEQUENCE
|
showSequenceControl: true, //SEQUENCE
|
||||||
|
@ -2747,7 +2747,7 @@ function onCanvasScroll( event ) {
|
|||||||
* this one and wait for the next event. */
|
* this one and wait for the next event. */
|
||||||
thisScroll = new Date().getTime();
|
thisScroll = new Date().getTime();
|
||||||
deltaScroll = thisScroll - lastScroll;
|
deltaScroll = thisScroll - lastScroll;
|
||||||
if (deltaScroll > this.minScrollDelta) {
|
if (deltaScroll > this.minScrollDeltaMS) {
|
||||||
lastScroll = thisScroll;
|
lastScroll = thisScroll;
|
||||||
|
|
||||||
if ( !event.preventDefaultAction && this.viewport ) {
|
if ( !event.preventDefaultAction && this.viewport ) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user