Auto-hide.

This commit is contained in:
Zixaphir 2013-04-26 14:57:25 -07:00
parent e70514b6ec
commit bfd879500f
5 changed files with 21 additions and 15 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -222,12 +222,18 @@ UI = do ->
dy: e.clientY - rect.top dy: e.clientY - rect.top
height: screenHeight - rect.height height: screenHeight - rect.height
width: screenWidth - rect.width width: screenWidth - rect.width
topBorder: if Conf["Bottom Header"] then 0 else Header.bar.getBoundingClientRect().height
bottomBorder: if Conf["Bottom Header"] then Header.bar.getBoundingClientRect().height else 0
screenHeight: screenHeight screenHeight: screenHeight
screenWidth: screenWidth screenWidth: screenWidth
isTouching: isTouching isTouching: isTouching
} }
[o.topBorder, o.bottomBorder] = if Conf['Header auto-hide']
[0, 0]
else if Conf['Bottom Header']
[0, Header.bar.getBoundingClientRect().height]
else
[Header.bar.getBoundingClientRect().height, 0]
if isTouching if isTouching
o.identifier = e.identifier o.identifier = e.identifier
o.move = touchmove.bind o o.move = touchmove.bind o

View File

@ -89,6 +89,9 @@ a[href="javascript:;"] {
#navlinks, #updater, #thread-stats { #navlinks, #updater, #thread-stats {
z-index: 40; z-index: 40;
} }
.fixed #header-bar.autohide {
z-index: 35;
}
#qr { #qr {
z-index: 30; z-index: 30;
} }