From 538de08c07674fc0ed20cec67e3fc52ea647acf8 Mon Sep 17 00:00:00 2001 From: shortcutme Date: Wed, 24 Oct 2018 13:59:10 +0200 Subject: [PATCH] Rev3673, Fix sidebar input fields on mobile --- plugins/Sidebar/media/Sidebar.coffee | 2 +- plugins/Sidebar/media/all.js | 2 +- src/Config.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/Sidebar/media/Sidebar.coffee b/plugins/Sidebar/media/Sidebar.coffee index b77332ac..64584013 100644 --- a/plugins/Sidebar/media/Sidebar.coffee +++ b/plugins/Sidebar/media/Sidebar.coffee @@ -102,7 +102,7 @@ class Sidebar extends Class @fixbutton.parents().on "mousemove touchmove" ,@waitMove # Stop dragging listener - @fixbutton.parents().on "mouseup touchend touchend touchcancel", (e) => + @fixbutton.parents().one "mouseup touchend touchcancel", (e) => e.preventDefault() @stopDrag() diff --git a/plugins/Sidebar/media/all.js b/plugins/Sidebar/media/all.js index ee9d3d1c..87c10b09 100644 --- a/plugins/Sidebar/media/all.js +++ b/plugins/Sidebar/media/all.js @@ -478,7 +478,7 @@ window.initScrollable = function () { })(this)); this.fixbutton.parents().on("mousemove touchmove", this.animDrag); this.fixbutton.parents().on("mousemove touchmove", this.waitMove); - return this.fixbutton.parents().on("mouseup touchend touchend touchcancel", (function(_this) { + return this.fixbutton.parents().one("mouseup touchend touchcancel", (function(_this) { return function(e) { e.preventDefault(); return _this.stopDrag(); diff --git a/src/Config.py b/src/Config.py index ae1760de..be11a0c5 100644 --- a/src/Config.py +++ b/src/Config.py @@ -10,7 +10,7 @@ class Config(object): def __init__(self, argv): self.version = "0.6.4" - self.rev = 3672 + self.rev = 3673 self.argv = argv self.action = None self.pending_changes = {}