diff --git a/plugins/Sidebar/media/Sidebar.coffee b/plugins/Sidebar/media/Sidebar.coffee index 802d1cff6..b56726878 100644 --- a/plugins/Sidebar/media/Sidebar.coffee +++ b/plugins/Sidebar/media/Sidebar.coffee @@ -55,6 +55,8 @@ class Sidebar extends Class @fixbutton_addx = @fixbutton.offset().left-mousex @startDrag() @fixbutton.parent().on "click touchend touchcancel", (e) => + if (+ new Date)-@dragStarted < 100 + window.top.location = @fixbutton.find(".fixbutton-bg").attr("href") @stopDrag() @resized() $(window).on "resize", @resized diff --git a/plugins/Sidebar/media/all.js b/plugins/Sidebar/media/all.js index 1acb2fdc5..8f36146e3 100644 --- a/plugins/Sidebar/media/all.js +++ b/plugins/Sidebar/media/all.js @@ -57,7 +57,6 @@ }).call(this); - /* ---- plugins/Sidebar/media/RateLimit.coffee ---- */ @@ -87,7 +86,6 @@ }).call(this); - /* ---- plugins/Sidebar/media/Scrollable.js ---- */ @@ -260,6 +258,9 @@ window.initScrollable = function () { })(this)); this.fixbutton.parent().on("click touchend touchcancel", (function(_this) { return function(e) { + if ((+(new Date)) - _this.dragStarted < 100) { + window.top.location = _this.fixbutton.find(".fixbutton-bg").attr("href"); + } return _this.stopDrag(); }; })(this)); @@ -647,6 +648,13 @@ window.initScrollable = function () { }); }; })(this)); + this.tag.find(".close").off("click touchend").on("click touchend", (function(_this) { + return function(e) { + _this.startDrag(); + _this.stopDrag(); + return false; + }; + })(this)); return this.loadGlobe(); };