mirror of
https://github.com/tenrok/OverlayScrollbars.git
synced 2026-05-17 05:59:40 +03:00
version 1.10.3
This commit is contained in:
@@ -2,13 +2,13 @@
|
||||
* OverlayScrollbars
|
||||
* https://github.com/KingSora/OverlayScrollbars
|
||||
*
|
||||
* Version: 1.10.2
|
||||
* Version: 1.10.3
|
||||
*
|
||||
* Copyright KingSora | Rene Haas.
|
||||
* https://github.com/KingSora
|
||||
*
|
||||
* Released under the MIT license.
|
||||
* Date: 30.12.2019
|
||||
* Date: 02.02.2020
|
||||
*/
|
||||
|
||||
/*
|
||||
|
||||
Vendored
+2
-2
File diff suppressed because one or more lines are too long
@@ -2,13 +2,13 @@
|
||||
* OverlayScrollbars
|
||||
* https://github.com/KingSora/OverlayScrollbars
|
||||
*
|
||||
* Version: 1.10.2
|
||||
* Version: 1.10.3
|
||||
*
|
||||
* Copyright KingSora | Rene Haas.
|
||||
* https://github.com/KingSora
|
||||
*
|
||||
* Released under the MIT license.
|
||||
* Date: 30.12.2019
|
||||
* Date: 02.02.2020
|
||||
*/
|
||||
|
||||
(function (global, factory) {
|
||||
@@ -3998,7 +3998,7 @@
|
||||
var cursorIsLastPosition = (cursorPos >= cursorMax && _textareaHasFocus);
|
||||
var textareaScrollAmount = {
|
||||
x: (!textareaAutoWrapping && (cursorCol === lastCol && cursorRow === widestRow)) ? _overflowAmountCache.x : -1,
|
||||
y: (textareaAutoWrapping ? cursorIsLastPosition || textareaRowsChanged && (previousOverflowAmount ? (currScroll.y === previousOverflow.y) : false) : (cursorIsLastPosition || textareaRowsChanged) && cursorRow === lastRow) ? _overflowAmountCache.y : -1
|
||||
y: (textareaAutoWrapping ? cursorIsLastPosition || textareaRowsChanged && (previousOverflowAmount ? (currScroll.y === previousOverflowAmount.y) : false) : (cursorIsLastPosition || textareaRowsChanged) && cursorRow === lastRow) ? _overflowAmountCache.y : -1
|
||||
};
|
||||
currScroll.x = textareaScrollAmount.x > -1 ? (_isRTL && _normalizeRTLCache && _rtlScrollBehavior.i ? 0 : textareaScrollAmount.x) : currScroll.x; //if inverted, scroll to 0 -> normalized this means to max scroll offset.
|
||||
currScroll.y = textareaScrollAmount.y > -1 ? textareaScrollAmount.y : currScroll.y;
|
||||
@@ -5822,11 +5822,14 @@
|
||||
var possibleElement = coordinatesIsElementObj ? coordinates.el : coordinates;
|
||||
var possibleElementIsJQuery = possibleElement instanceof FRAMEWORK || JQUERY ? possibleElement instanceof JQUERY : false;
|
||||
var possibleElementIsHTMLElement = possibleElementIsJQuery ? false : isHTMLElement(possibleElement);
|
||||
var proxyCompleteCallback = type(completeCallback) != TYPES.f ? undefined : function () {
|
||||
var updateScrollbarInfos = function () {
|
||||
if (doScrollLeft)
|
||||
refreshScrollbarHandleOffset(true);
|
||||
if (doScrollTop)
|
||||
refreshScrollbarHandleOffset(false);
|
||||
};
|
||||
var proxyCompleteCallback = type(completeCallback) != TYPES.f ? undefined : function () {
|
||||
updateScrollbarInfos();
|
||||
completeCallback();
|
||||
};
|
||||
function checkSettingsStringValue(currValue, allowedValues) {
|
||||
@@ -6118,6 +6121,7 @@
|
||||
_viewportElement[_strScrollLeft](finalScroll[_strScrollLeft]);
|
||||
if (doScrollTop)
|
||||
_viewportElement[_strScrollTop](finalScroll[_strScrollTop]);
|
||||
updateScrollbarInfos();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Vendored
+3
-3
File diff suppressed because one or more lines are too long
+546
-542
File diff suppressed because it is too large
Load Diff
Vendored
+3
-3
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "overlayscrollbars",
|
||||
"version": "1.10.2",
|
||||
"version": "1.10.3",
|
||||
"description": "A javascript scrollbar plugin which hides native scrollbars, provides custom styleable overlay scrollbars and keeps the native functionality and feeling.",
|
||||
"keywords": [
|
||||
"overlayscrollbars",
|
||||
|
||||
Reference in New Issue
Block a user