I am facing an issue with a CSS element set to position: fixed
.
While it works perfectly on desktop browsers, it behaves poorly on mobile browsers, especially Firefox.
The main problem is that the fixed element scrolls along with the page and then abruptly snaps back into its original position after scrolling stops.
To see the issue in action, check out this demonstration: (Focus on the “Top” block at the bottom right corner, which is the fixed element)
https://i.sstatic.net/zod73.jpg
Any suggestions on how to fix this issue?