version 1.10.3

This commit is contained in:
Rene
2020-02-02 20:04:26 +01:00
parent a7d15d8a79
commit 7b57bc7d92
7 changed files with 565 additions and 557 deletions
+2 -2
View File
@@ -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
*/
/*
+2 -2
View File
File diff suppressed because one or more lines are too long
+8 -4
View File
@@ -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();
}
};
+3 -3
View File
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff
+3 -3
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -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",