Closed thisisjamessmith closed 10 months ago
how about this?
same as https://github.com/tuax/tua-body-scroll-lock/issues/63
Feel free to reopen if the problem still exists~
Thanks for getting back to me so quickly, and also thanks for your work on this very useful library. This seems to work ok, at least testing on the Chrome inspector's emulator. It doesn't work on Firefox's emulator unfortunately, and I haven't had a chance to test on a real android device yet.
Version Version 1.4.0
Describe the bug There's some UA sniffing code in the library which targets Android and sets the body element to be position: fixed with a top offset to fake a scroll to the current scroll position. Unfortunately this makes any headers that use position:sticky stop being sticky.
To Reproduce Steps to reproduce the behavior:
If you don't have an Android device you can see this problem easily using the device emulator tools in Chrome and Firefox's inspectors which pass through the appropriate UA string.