prototypejs / prototype

Prototype JavaScript framework
http://prototypejs.org/
Other
3.54k stars 640 forks source link

Consider enhancing Element.scrollTo to handle scrollable ancestor elements #165

Open jwestbrook opened 10 years ago

jwestbrook commented 10 years ago

previous lighthouse ticket #1375 by @savetheclocktower


Currently, Element.scrollTo will only scroll the window in an effort to make the element in question visible. This doesn't work if the element is in a non-visible portion of a scrollable element container (overflow: scroll).

Consider enhancing Element.scrollTo so that it either:

this PR https://github.com/sstephenson/prototype/pull/64