diff options
author | Daniel Carl <danielcarl@gmx.de> | 2017-05-07 22:39:59 +0200 |
---|---|---|
committer | Daniel Carl <danielcarl@gmx.de> | 2017-05-07 22:41:20 +0200 |
commit | 6861e627ee63589cd8775daa85632dcfaf43c500 (patch) | |
tree | 906e95dcc466814e50f3cf1e4f4920ad95c50964 /src/normal.c | |
parent | a688ad3eb0098c10de57d62821a31c8b28148a9c (diff) |
Fix wrong js to scroll to x percent of page.
Diffstat (limited to 'src/normal.c')
-rw-r--r-- | src/normal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/normal.c b/src/normal.c index 156ef52..d96513d 100644 --- a/src/normal.c +++ b/src/normal.c @@ -688,7 +688,7 @@ static VbResult normal_scroll(Client *c, const NormalCmdInfo *info) case 'G': if (info->count) { js = g_strdup_printf( - "window.scroll(window.scrollX, %d * (1 + (document.height - window.innerHeight) / 100));", + "window.scroll(window.scrollX, %d * ((document.documentElement.scrollHeight - window.innerHeight) / 100));", info->count); ext_proxy_eval_script(c, js, NULL); g_free(js); |