Fix sidebar when the mouse leave the window

pull/1490/head
Enoc 4 years ago
parent 7480257c59
commit 2824f75cd5

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

Loading…
Cancel
Save