mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-05-11 23:24:52 +00:00
674f523cba
Fixes Chrome/Blink disappearing text bugs in i2ptunnel and susidns.
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;
|
|
} |