Changed name of config parameter to include 'MS' to suggest milliseconds.

This commit is contained in:
Grant Echols 2015-10-27 15:33:39 -06:00
parent 19c6179533
commit ad4bbb9daf
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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 ) {