PLT-172 Added a modified version of perfect-scrollbar-0.6.5 which correctly stops clicks through the scrollbar

This commit is contained in:
hmhealey
2015-09-15 12:51:32 -04:00
parent 49df7c0314
commit ac052fb91c
2 changed files with 9 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
/* perfect-scrollbar v0.6.5 */
/* perfect-scrollbar v0.6.5-1 */
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
/* Copyright (c) 2015 Hyunje Alex Jun and other contributors
* Licensed under the MIT License
@@ -441,10 +441,11 @@ function bindClickRailHandler(element, i) {
function pageOffset(el) {
return el.getBoundingClientRect();
}
var stopPropagation = window.Event.prototype.stopPropagation.bind;
if (i.settings.stopPropagationOnClick) {
i.event.bind(i.scrollbarY, 'click', stopPropagation);
i.event.bind(i.scrollbarY, 'click', function (e) {
e.stopPropagation();
});
}
i.event.bind(i.scrollbarYRail, 'click', function (e) {
var halfOfScrollbarLength = h.toInt(i.scrollbarYHeight / 2);
@@ -465,7 +466,9 @@ function bindClickRailHandler(element, i) {
});
if (i.settings.stopPropagationOnClick) {
i.event.bind(i.scrollbarX, 'click', stopPropagation);
i.event.bind(i.scrollbarY, 'click', function (e) {
e.stopPropagation();
});
}
i.event.bind(i.scrollbarXRail, 'click', function (e) {
var halfOfScrollbarLength = h.toInt(i.scrollbarXWidth / 2);

File diff suppressed because one or more lines are too long