use absolute positioning for g keybind

userstyles make the position of #navtop / #header uncertain
This commit is contained in:
James Campos 2010-11-14 04:33:58 -08:00
parent 6d093a8381
commit 488b828515
2 changed files with 4 additions and 2 deletions

View File

@ -395,7 +395,8 @@ keyAct = (e) ->
if e.shiftKey if e.shiftKey
location.hash = 10 location.hash = 10
else else
location.hash = 'navtop' window.scrollTo 0, 0
location.hash = ''
count or= 1 count or= 1
switch char switch char
when "H" when "H"

View File

@ -486,7 +486,8 @@
if (e.shiftKey) { if (e.shiftKey) {
location.hash = 10; location.hash = 10;
} else { } else {
location.hash = 'navtop'; window.scrollTo(0, 0);
location.hash = '';
} }
} }
} }