js/OverlayScrollbars.js
function setupScrollbarCornerEvents() {
                    var insideIFrame = _windowElementNative.top !== _windowElementNative;
                    var mouseDownPosition = { };
                    var mouseDownSize = { };
                    var mouseDownInvertedScale = { };

                    _resizeOnMouseTouchDown = function(event) {
                        if (onMouseTouchDownContinue(event)) {
                            if (_mutationObserversConnected) {
                                _resizeReconnectMutationObserver = true;
                                disconnectMutationObservers();
                            }

                            mouseDownPosition = getCoordinates(event);

                            mouseDownSize.w = _hostElementNative[LEXICON.oW] - (!_isBorderBox ? _paddingX : 0);
                            mouseDownSize.h = _hostElementNative[LEXICON.oH] - (!_isBorderBox ? _paddingY : 0);
                            mouseDownInvertedScale = getHostElementInvertedScale();

                            _documentElement.on(_strSelectStartEvent, documentOnSelectStart)
                                .on(_strMouseTouchMoveEvent, documentDragMove)
                                .on(_strMouseTouchUpEvent, documentMouseTouchUp);

                            addClass(_bodyElement, _classNameDragging);
                            if (_scrollbarCornerElement.setCapture)
                                _scrollbarCornerElement.setCapture();

                            COMPATIBILITY.prvD(event);
                            COMPATIBILITY.stpP(event);
                        }
                    };
                    function documentDragMove(event) {
                        if (onMouseTouchDownContinue(event)) {
                            var pageOffset = getCoordinates(event);
                            var hostElementCSS = { };
                            if (_resizeHorizontal || _resizeBoth)
                                hostElementCSS[_strWidth] = (mouseDownSize.w + (pageOffset.x - mouseDownPosition.x) * mouseDownInvertedScale.x);
                            if (_resizeVertical || _resizeBoth)
                                hostElementCSS[_strHeight] = (mouseDownSize.h + (pageOffset.y - mouseDownPosition.y) * mouseDownInvertedScale.y);
                            _hostElement.css(hostElementCSS);
                            COMPATIBILITY.stpP(event);
                        }
                        else {
                            documentMouseTouchUp(event);
                        }
                    }
                    function documentMouseTouchUp(event) {
                        var eventIsTrusted = event !== undefined;

                        _documentElement.off(_strSelectStartEvent, documentOnSelectStart)
                            .off(_strMouseTouchMoveEvent, documentDragMove)
                            .off(_strMouseTouchUpEvent, documentMouseTouchUp);

                        removeClass(_bodyElement, _classNameDragging);
                        if (_scrollbarCornerElement.releaseCapture)
                            _scrollbarCornerElement.releaseCapture();

                        if (eventIsTrusted) {
                            if (_resizeReconnectMutationObserver)
                                connectMutationObservers();
                            _base.update(_strAuto);
                        }
                        _resizeReconnectMutationObserver = false;
                    }
                    function onMouseTouchDownContinue(event) {
                        var originalEvent = event.originalEvent || event;
                        var isTouchEvent = originalEvent.touches !== undefined;
                        return _isSleeping || _destroyed ? false : COMPATIBILITY.mBtn(event) === 1 || isTouchEvent;
                    }
                    function getCoordinates(event) {
                        return _msieVersion && insideIFrame ? { x : event.screenX , y : event.screenY } : COMPATIBILITY.page(event);
                    }
                }
function setupScrollbarCornerEvents() {
                    var insideIFrame = _windowElementNative.top !== _windowElementNative;
                    var mouseDownPosition = { };
                    var mouseDownSize = { };
                    var mouseDownInvertedScale = { };

                    _resizeOnMouseTouchDown = function(event) {
                        if (onMouseTouchDownContinue(event)) {
                            if (_mutationObserversConnected) {
                                _resizeReconnectMutationObserver = true;
                                disconnectMutationObservers();
                            }

                            mouseDownPosition = getCoordinates(event);

                            mouseDownSize.w = _hostElementNative[LEXICON.oW] - (!_isBorderBox ? _paddingX : 0);
                            mouseDownSize.h = _hostElementNative[LEXICON.oH] - (!_isBorderBox ? _paddingY : 0);
                            mouseDownInvertedScale = getHostElementInvertedScale();

                            _documentElement.on(_strSelectStartEvent, documentOnSelectStart)
                                .on(_strMouseTouchMoveEvent, documentDragMove)
                                .on(_strMouseTouchUpEvent, documentMouseTouchUp);

                            addClass(_bodyElement, _classNameDragging);
                            if (_scrollbarCornerElement.setCapture)
                                _scrollbarCornerElement.setCapture();

                            COMPATIBILITY.prvD(event);
                            COMPATIBILITY.stpP(event);
                        }
                    };
                    function documentDragMove(event) {
                        if (onMouseTouchDownContinue(event)) {
                            var pageOffset = getCoordinates(event);
                            var hostElementCSS = { };
                            if (_resizeHorizontal || _resizeBoth)
                                hostElementCSS[_strWidth] = (mouseDownSize.w + (pageOffset.x - mouseDownPosition.x) * mouseDownInvertedScale.x);
                            if (_resizeVertical || _resizeBoth)
                                hostElementCSS[_strHeight] = (mouseDownSize.h + (pageOffset.y - mouseDownPosition.y) * mouseDownInvertedScale.y);
                            _hostElement.css(hostElementCSS);
                            COMPATIBILITY.stpP(event);
                        }
                        else {
                            documentMouseTouchUp(event);
                        }
                    }
                    function documentMouseTouchUp(event) {
                        var eventIsTrusted = event !== undefined;

                        _documentElement.off(_strSelectStartEvent, documentOnSelectStart)
                            .off(_strMouseTouchMoveEvent, documentDragMove)
                            .off(_strMouseTouchUpEvent, documentMouseTouchUp);

                        removeClass(_bodyElement, _classNameDragging);
                        if (_scrollbarCornerElement.releaseCapture)
                            _scrollbarCornerElement.releaseCapture();

                        if (eventIsTrusted) {
                            if (_resizeReconnectMutationObserver)
                                connectMutationObservers();
                            _base.update(_strAuto);
                        }
                        _resizeReconnectMutationObserver = false;
                    }
                    function onMouseTouchDownContinue(event) {
                        var originalEvent = event.originalEvent || event;
                        var isTouchEvent = originalEvent.touches !== undefined;
                        return _isSleeping || _destroyed ? false : COMPATIBILITY.mBtn(event) === 1 || isTouchEvent;
                    }
                    function getCoordinates(event) {
                        return _msieVersion && insideIFrame ? { x : event.screenX , y : event.screenY } : COMPATIBILITY.page(event);
                    }
                }
function setupScrollbarCornerEvents ( ) { var insideIFrame = _windowElementNative . top !== _windowElementNative ; var mouseDownPosition = { } ; var mouseDownSize = { } ; var mouseDownInvertedScale = { } ; _resizeOnMouseTouchDown = function ( event ) { if ( onMouseTouchDownContinue ( event ) ) { if ( _mutationObserversConnected ) { _resizeReconnectMutationObserver = true ; disconnectMutationObservers ( ) ; } mouseDownPosition = getCoordinates ( event ) ; mouseDownSize . w = _hostElementNative [ LEXICON . oW ] - ( ! _isBorderBox ? _paddingX : 0 ) ; mouseDownSize . h = _hostElementNative [ LEXICON . oH ] - ( ! _isBorderBox ? _paddingY : 0 ) ; mouseDownInvertedScale = getHostElementInvertedScale ( ) ; _documentElement . on ( _strSelectStartEvent , documentOnSelectStart ) . on ( _strMouseTouchMoveEvent , documentDragMove ) . on ( _strMouseTouchUpEvent , documentMouseTouchUp ) ; addClass ( _bodyElement , _classNameDragging ) ; if ( _scrollbarCornerElement . setCapture ) _scrollbarCornerElement . setCapture ( ) ; COMPATIBILITY . prvD ( event ) ; COMPATIBILITY . stpP ( event ) ; } } ; function documentDragMove ( event ) { if ( onMouseTouchDownContinue ( event ) ) { var pageOffset = getCoordinates ( event ) ; var hostElementCSS = { } ; if ( _resizeHorizontal || _resizeBoth ) hostElementCSS [ _strWidth ] = ( mouseDownSize . w + ( pageOffset . x - mouseDownPosition . x ) * mouseDownInvertedScale . x ) ; if ( _resizeVertical || _resizeBoth ) hostElementCSS [ _strHeight ] = ( mouseDownSize . h + ( pageOffset . y - mouseDownPosition . y ) * mouseDownInvertedScale . y ) ; _hostElement . css ( hostElementCSS ) ; COMPATIBILITY . stpP ( event ) ; } else { documentMouseTouchUp ( event ) ; } } function documentMouseTouchUp ( event ) { var eventIsTrusted = event !== undefined ; _documentElement . off ( _strSelectStartEvent , documentOnSelectStart ) . off ( _strMouseTouchMoveEvent , documentDragMove ) . off ( _strMouseTouchUpEvent , documentMouseTouchUp ) ; removeClass ( _bodyElement , _classNameDragging ) ; if ( _scrollbarCornerElement . releaseCapture ) _scrollbarCornerElement . releaseCapture ( ) ; if ( eventIsTrusted ) { if ( _resizeReconnectMutationObserver ) connectMutationObservers ( ) ; _base . update ( _strAuto ) ; } _resizeReconnectMutationObserver = false ; } function onMouseTouchDownContinue ( event ) { var originalEvent = event . originalEvent || event ; var isTouchEvent = originalEvent . touches !== undefined ; return _isSleeping || _destroyed ? false : COMPATIBILITY . mBtn ( event ) === 1 || isTouchEvent ; } function getCoordinates ( event ) { return _msieVersion && insideIFrame ? { x : event . screenX , y : event . screenY } : COMPATIBILITY . page ( event ) ; } }
Initializes all scrollbar corner interactivity events.
Initializes all scrollbar corner interactivity events .