Browser Window scrolling to top on events


#1

Has anyone had your browser window content scroll to the top of the page with javascript events?

I may be doing something wrong, but I am just doing a simple “$(id).toggle()” to hide show the element on the page. When ever any javascript event fires the window scrolls to the top. This is just a dev tool I run in the shell, so it is pretty hacky. Am I doing something outside the paradigm of electron?

I would be happy just scroll back to the element, but normal JS to do that doesn’t work.

Any thoughts on where I might look or a simple way to stop this from happening?