Emulate short click for mobile
This commit is contained in:
parent
527c2b4f54
commit
a69531c4c9
2 changed files with 12 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue