Merge pull request #831 from jmerle/fix-829

Hide sidebar when mouse is outside the window
pull/1028/head
Jasper van Merle 6 years ago committed by GitHub
commit e684e8cb75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -28,7 +28,7 @@ class app.views.Sidebar extends app.View
app.on 'ready', @onReady
$.on document.documentElement, 'mouseleave', (event) => @display() if event.clientX < 10
$.on document.documentElement, 'mouseleave', (event) => @display() unless event.clientX <= 0
$.on document.documentElement, 'mouseenter', => @resetDisplay(forceNoHover: false)
return

Loading…
Cancel
Save