use absolute positioning for g keybind
userstyles make the position of #navtop / #header uncertain
This commit is contained in:
parent
6d093a8381
commit
488b828515
@ -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"
|
||||||
|
|||||||
@ -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 = '';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user