mirror of
https://github.com/tenrok/OverlayScrollbars.git
synced 2026-06-19 02:30:36 +03:00
version 1.10.3
This commit is contained in:
@@ -2,13 +2,13 @@
|
|||||||
* OverlayScrollbars
|
* OverlayScrollbars
|
||||||
* https://github.com/KingSora/OverlayScrollbars
|
* https://github.com/KingSora/OverlayScrollbars
|
||||||
*
|
*
|
||||||
* Version: 1.10.2
|
* Version: 1.10.3
|
||||||
*
|
*
|
||||||
* Copyright KingSora | Rene Haas.
|
* Copyright KingSora | Rene Haas.
|
||||||
* https://github.com/KingSora
|
* https://github.com/KingSora
|
||||||
*
|
*
|
||||||
* Released under the MIT license.
|
* 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
|
* OverlayScrollbars
|
||||||
* https://github.com/KingSora/OverlayScrollbars
|
* https://github.com/KingSora/OverlayScrollbars
|
||||||
*
|
*
|
||||||
* Version: 1.10.2
|
* Version: 1.10.3
|
||||||
*
|
*
|
||||||
* Copyright KingSora | Rene Haas.
|
* Copyright KingSora | Rene Haas.
|
||||||
* https://github.com/KingSora
|
* https://github.com/KingSora
|
||||||
*
|
*
|
||||||
* Released under the MIT license.
|
* Released under the MIT license.
|
||||||
* Date: 30.12.2019
|
* Date: 02.02.2020
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function (global, factory) {
|
(function (global, factory) {
|
||||||
@@ -3998,7 +3998,7 @@
|
|||||||
var cursorIsLastPosition = (cursorPos >= cursorMax && _textareaHasFocus);
|
var cursorIsLastPosition = (cursorPos >= cursorMax && _textareaHasFocus);
|
||||||
var textareaScrollAmount = {
|
var textareaScrollAmount = {
|
||||||
x: (!textareaAutoWrapping && (cursorCol === lastCol && cursorRow === widestRow)) ? _overflowAmountCache.x : -1,
|
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.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;
|
currScroll.y = textareaScrollAmount.y > -1 ? textareaScrollAmount.y : currScroll.y;
|
||||||
@@ -5822,11 +5822,14 @@
|
|||||||
var possibleElement = coordinatesIsElementObj ? coordinates.el : coordinates;
|
var possibleElement = coordinatesIsElementObj ? coordinates.el : coordinates;
|
||||||
var possibleElementIsJQuery = possibleElement instanceof FRAMEWORK || JQUERY ? possibleElement instanceof JQUERY : false;
|
var possibleElementIsJQuery = possibleElement instanceof FRAMEWORK || JQUERY ? possibleElement instanceof JQUERY : false;
|
||||||
var possibleElementIsHTMLElement = possibleElementIsJQuery ? false : isHTMLElement(possibleElement);
|
var possibleElementIsHTMLElement = possibleElementIsJQuery ? false : isHTMLElement(possibleElement);
|
||||||
var proxyCompleteCallback = type(completeCallback) != TYPES.f ? undefined : function () {
|
var updateScrollbarInfos = function () {
|
||||||
if (doScrollLeft)
|
if (doScrollLeft)
|
||||||
refreshScrollbarHandleOffset(true);
|
refreshScrollbarHandleOffset(true);
|
||||||
if (doScrollTop)
|
if (doScrollTop)
|
||||||
refreshScrollbarHandleOffset(false);
|
refreshScrollbarHandleOffset(false);
|
||||||
|
};
|
||||||
|
var proxyCompleteCallback = type(completeCallback) != TYPES.f ? undefined : function () {
|
||||||
|
updateScrollbarInfos();
|
||||||
completeCallback();
|
completeCallback();
|
||||||
};
|
};
|
||||||
function checkSettingsStringValue(currValue, allowedValues) {
|
function checkSettingsStringValue(currValue, allowedValues) {
|
||||||
@@ -6118,6 +6121,7 @@
|
|||||||
_viewportElement[_strScrollLeft](finalScroll[_strScrollLeft]);
|
_viewportElement[_strScrollLeft](finalScroll[_strScrollLeft]);
|
||||||
if (doScrollTop)
|
if (doScrollTop)
|
||||||
_viewportElement[_strScrollTop](finalScroll[_strScrollTop]);
|
_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",
|
"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.",
|
"description": "A javascript scrollbar plugin which hides native scrollbars, provides custom styleable overlay scrollbars and keeps the native functionality and feeling.",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"overlayscrollbars",
|
"overlayscrollbars",
|
||||||
|
|||||||
Reference in New Issue
Block a user