add maxScrollbarLength
This commit is contained in:
parent
6fa5f198e2
commit
49a2a694b9
@ -22,6 +22,7 @@
|
|||||||
wheelSpeed: 10,
|
wheelSpeed: 10,
|
||||||
wheelPropagation: false,
|
wheelPropagation: false,
|
||||||
minScrollbarLength: null,
|
minScrollbarLength: null,
|
||||||
|
maxScrollbarLength: null,
|
||||||
useBothWheelAxes: false,
|
useBothWheelAxes: false,
|
||||||
useKeyboard: true,
|
useKeyboard: true,
|
||||||
suppressScrollX: false,
|
suppressScrollX: false,
|
||||||
@ -156,6 +157,9 @@
|
|||||||
if (settings.minScrollbarLength) {
|
if (settings.minScrollbarLength) {
|
||||||
thumbSize = Math.max(thumbSize, settings.minScrollbarLength);
|
thumbSize = Math.max(thumbSize, settings.minScrollbarLength);
|
||||||
}
|
}
|
||||||
|
if (settings.maxScrollbarLength) {
|
||||||
|
thumbSize = Math.min(thumbSize, settings.maxScrollbarLength);
|
||||||
|
}
|
||||||
return thumbSize;
|
return thumbSize;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user