Skip to content

Commit e684e8c

Browse files
authored
Merge pull request #831 from jmerle/fix-829
Hide sidebar when mouse is outside the window
2 parents 377fce4 + 6893ac9 commit e684e8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assets/javascripts/views/sidebar/sidebar.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class app.views.Sidebar extends app.View
2828

2929
app.on 'ready', @onReady
3030

31-
$.on document.documentElement, 'mouseleave', (event) => @display() if event.clientX < 10
31+
$.on document.documentElement, 'mouseleave', (event) => @display() unless event.clientX <= 0
3232
$.on document.documentElement, 'mouseenter', => @resetDisplay(forceNoHover: false)
3333
return
3434

0 commit comments

Comments
 (0)