diff options
author | hmhealey <harrisonmhealey@gmail.com> | 2015-11-05 12:01:40 -0500 |
---|---|---|
committer | hmhealey <harrisonmhealey@gmail.com> | 2015-11-05 12:01:40 -0500 |
commit | febf0fd436a449f213977eb7bdfc0ba50f65bf16 (patch) | |
tree | f9e3df16483fb149502e21cbfff48b145adb23ee /web/static/js/perfect-scrollbar-0.6.7.jquery.js | |
parent | 0e728316397eda4aaa9e957b7f1e2b7645ee804b (diff) | |
download | chat-febf0fd436a449f213977eb7bdfc0ba50f65bf16.tar.gz chat-febf0fd436a449f213977eb7bdfc0ba50f65bf16.tar.bz2 chat-febf0fd436a449f213977eb7bdfc0ba50f65bf16.zip |
Re-added changes made in ac052fb9 to perfect scrollbar
Diffstat (limited to 'web/static/js/perfect-scrollbar-0.6.7.jquery.js')
-rw-r--r-- | web/static/js/perfect-scrollbar-0.6.7.jquery.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/web/static/js/perfect-scrollbar-0.6.7.jquery.js b/web/static/js/perfect-scrollbar-0.6.7.jquery.js index 9e93de017..6c25fa91f 100644 --- a/web/static/js/perfect-scrollbar-0.6.7.jquery.js +++ b/web/static/js/perfect-scrollbar-0.6.7.jquery.js @@ -443,10 +443,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); @@ -467,7 +468,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); |