Rev1786, Fix sidebar on FF

This commit is contained in:
shortcutme 2016-12-14 10:28:41 +01:00
parent 5cf96dbada
commit e37daabb53
3 changed files with 3 additions and 3 deletions

View file

@ -37,7 +37,7 @@ class Sidebar extends Class
# Detect dragging
@fixbutton.on "mousedown touchstart", (e) =>
if event.button > 0 # Right or middle click
if e.button > 0 # Right or middle click
return
e.preventDefault()

View file

@ -237,7 +237,7 @@ window.initScrollable = function () {
*/
this.fixbutton.on("mousedown touchstart", (function(_this) {
return function(e) {
if (event.button > 0) {
if (e.button > 0) {
return;
}
e.preventDefault();