6 ms·
> "scroll to top" by tapping the title bar is completely broken This is because the scrolling is in a container rather than the body. It's a tough problem on m
by Nagyman 10y ago
> "scroll to top" by tapping the title bar is completely broken
This is because the scrolling is in a container rather than the body. It's a tough problem on many mobile pages using sliding drawers for example, which rely on overflow based scrolling. There's no event, that I'm aware of, for a web app to listen for for tapping that UI element on iOS.
Ultimately, it's a non-standard convenience introduced on iOS only. Maybe someone else here has solved this :)
- tedmiston 10y agoNon-standard with respect to what? It's used in every Apple app, as well as tons of third party apps — Facebook, Instagram, and Gmail to name a few.
- Mister_Snuggles 10y agoI'm not sure how this is non-standard. On iOS, there are various conventions that apps generally follow. On a list item you can swipe from right-to-left to bring up a Delete option. On a list of stuff you can tap at the top of the screen to scroll to the top. These are standard things in the iOS ecosystem. A good parallel outside of iOS would be the pervasive use of right-click to bring up a context menu in Windows or the convention of having "--help" show help text in Linux.