CHANGE scroll indicators to be interactive
This commit is contained in:
parent
559cf1ef80
commit
aee652e045
4 changed files with 45 additions and 24 deletions
|
@ -0,0 +1,11 @@
|
|||
function scrollDown() {
|
||||
var scroller = document.getElementById("scroller");
|
||||
var height = scroller.offsetHeight;
|
||||
scroller.scrollBy(0, height);
|
||||
}
|
||||
|
||||
function scrollUp() {
|
||||
var scroller = document.getElementById("scroller");
|
||||
var height = scroller.offsetHeight;
|
||||
scroller.scrollBy(0, -1 * height);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue