https://bugzilla.wikimedia.org/show_bug.cgi?id=58880

--- Comment #2 from Shahyar Ghobadpour <shah...@gmail.com> ---
So, what exactly do we want the solution to be here? I looked at the code, and
it's rather complex for something as simple as scrolling an element into view.

There seems to be a few options:
1. Always scroll top of element to top of window.
2. Always scroll top of element to middle of window.
3. Scroll top of element to top of window only if element.height >
window.height, otherwise scroll middle of element to middle of window.
4. Scroll top of element to middle of window only if element.height >
window.height, otherwise scroll middle of element to middle of window.


As far as smoothness goes, jQuery stopped using requestAnimationFrame in 1.6.1.
We could probably write something brief to do the scrolling via
requestAnimationFrame, and fallback via this method:
http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
-- gotta trust a guy named Erik Möller!

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to