excmds: fix scrollpage

Closes #45.
This commit is contained in:
Hoàng Đức Hiếu 2017-11-07 12:05:14 +00:00 committed by Colin Caine
parent 28bd2fcae7
commit 7ba53b7c67

View file

@ -109,7 +109,7 @@ export function scrollline(n = 1) {
}
//#content
export function scrollpage(n = 1) {
window.scrollBy(0, n)
window.scrollBy(0, window.innerHeight * n)
}
/** @hidden */