Merge pull request #174 from ivan1986/patch-1

add maxScrollbarLength.
This commit is contained in:
Hyunje Alex Jun 2014-07-16 18:53:04 +01:00
commit 3adb98cd40

View File

@ -22,6 +22,7 @@
wheelSpeed: 10,
wheelPropagation: false,
minScrollbarLength: null,
maxScrollbarLength: null,
useBothWheelAxes: false,
useKeyboard: true,
suppressScrollX: false,
@ -158,6 +159,9 @@
if (settings.minScrollbarLength) {
thumbSize = Math.max(thumbSize, settings.minScrollbarLength);
}
if (settings.maxScrollbarLength) {
thumbSize = Math.min(thumbSize, settings.maxScrollbarLength);
}
return thumbSize;
};