Add JavaScript snippet to reset dest address scroll position onblur

Fixes Chrome/Blink disappearing text bugs in i2ptunnel and susidns.
This commit is contained in:
str4d
2017-07-27 01:23:06 +00:00
parent 2bfe27d217
commit 674f523cba
5 changed files with 35 additions and 5 deletions

View File

@ -0,0 +1,15 @@
// 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;
}