var onContainerMouseMove = function()

in lib/@uncharted/strippets.common/src/uncharted.scrollable.js [67:81]


    var onContainerMouseMove = function (e) {
        // if the mouse button is compressed
        if (t._isScrolling && e.buttons === 1) {
            var delta = e.pageY - t._slideStart;
            var maxHeight = t.$container.height() - t.$slider.height();
            var position = (t._initialScrollPosition || 0) + delta;

            if (position < 0) {
                position = 0;
            } else if (position > maxHeight) {
                position = maxHeight;
            }
            updateReadingModeScrollPosition(position);
        }
    };