Only toggle the Header on LMB.
This commit is contained in:
parent
c68f1a3809
commit
e3ca8f280d
@ -191,8 +191,7 @@ UI = do ->
|
|||||||
|
|
||||||
|
|
||||||
dragstart = (e) ->
|
dragstart = (e) ->
|
||||||
if e.type is 'mousedown' and e.button isnt 0 # not LMB
|
return if e.type is 'mousedown' and e.button isnt 0 # not LMB
|
||||||
return
|
|
||||||
# prevent text selection
|
# prevent text selection
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
if isTouching = e.type is 'touchstart'
|
if isTouching = e.type is 'touchstart'
|
||||||
|
|||||||
@ -131,7 +131,8 @@ Header =
|
|||||||
setBarVisibility: (hide) ->
|
setBarVisibility: (hide) ->
|
||||||
Header.headerToggler.firstElementChild.checked = hide
|
Header.headerToggler.firstElementChild.checked = hide
|
||||||
(if hide then $.addClass else $.rmClass) Header.bar, 'autohide'
|
(if hide then $.addClass else $.rmClass) Header.bar, 'autohide'
|
||||||
toggleBarVisibility: ->
|
toggleBarVisibility: (e) ->
|
||||||
|
return if e.type is 'mousedown' and e.button isnt 0 # not LMB
|
||||||
hide = if @nodeName is 'INPUT'
|
hide = if @nodeName is 'INPUT'
|
||||||
@checked
|
@checked
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user