forked from I2P_Developers/i2p.i2p
15 lines
305 B
JavaScript
15 lines
305 B
JavaScript
![]() |
// resets scroll position of element
|
||
|
// use with onblur to clear scroll position when element loses focus
|
||
|
|
||
|
|
||
|
// reset scroll to left position
|
||
|
|
||
|
function resetScrollLeft(element) {
|
||
|
element.scrollLeft = 0;
|
||
|
}
|
||
|
|
||
|
// reset scroll to top position
|
||
|
|
||
|
function resetScrollTop(element) {
|
||
|
element.scrollTop = 0;
|
||
|
}
|