Closed ahelpingchip closed 10 years ago
That's actually the case no matter the view. On any page (page A), if you scroll and click on a link. the page it goes to, provided it is scrollable, will be scrolled to the position you were in at page A.
The fix for this will probably be a line in the app template controller coercing the scrollTop to be 0 every time, though not sure if want.
this is a bug in mithril routing if anything, and i'm currently putting a fix in and will later on submit it as a pull request
question @ahelpingchip @levitanong
i have a temporary fix, but a side-effect is that switching page or filtering triggers scrolling back up to the top. is this desired behavior y/n?
switching page, yes. filtering, no.
fyi, filtering resets the page to 1 so maybe also yes?
or is it more because of the accessibility of the controls in the layout? :/
what do you mean by accessibility?
the page controls are easily clickable even after a scroll reset. the filters, not necessarily.
Well yeah. That's my main concern, but Fuck it. Do it na :))
(not that big a deal tho, I guess.)