add maxScrollbarLength

This commit is contained in:
Ivan Borzenkov 2014-07-09 21:16:16 +04:00
parent 6fa5f198e2
commit 49a2a694b9

View File

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