Closed Hugofgx9 closed 2 years ago
Hi @Hugofgx9, fixed position is necessary because ASScroll will sync the native window.scrollY
position when possible and if absolute positioning was used the page content would move after the sync since the page is positioned relative to the document root which has been scrolled. Feel free to experiment and let me know if you find a better solution though!
Hello,
I worked on a website with asscroll (https://www.louisefantozzi.com) and I have a performance issue on Safari. I've done a lot of research and I think the issue is using a fixed position, which performs poorly with large content on safari.
I've benchmarked several other scroll libraries, and they mostly use absolute position which seems better. I don't have free time right now to do a pull request but I'll try to come up with something asap. @ashthornton is there a reason why you use a fixed position rather than an absolute position ?