Is it possible to use jquery scrollTo together with this trick?
Short version:
Hello, with this trick I mean the method to force webkit scrollbars described
here.
Basically, it's
- body {
- position: absolute;
- top: 0;
- left: 0;
- bottom: 0;
- right: 10px;
- overflow-y: scroll;
- overflow-x: hidden;
- }
and so the window itself can't be scrolled, something inside the window is scrolled.
But what? Which is the object I can use together with scrollTo to make it work that way?
I tried document.scrollTo(...), $(document).scrollTo(...), $(html).scrollTo(...) and $.scrollTo(...), but neither did work.
More detailed version:
I want to apply a tampermonkey script to a given page. But using tampermonkey breaks my custom scrollbars. So I want to use the trick mentioned above to get the custom webkit-scrollbars back. And in the script, I'd like to scroll...