Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2019-06-21 04:24:14 +03:00
parent 66df691aad
commit a49b02406c

View File

@ -3871,7 +3871,15 @@ var BrowserPrototype = {
// Scroll...
//
// XXX use .options.focusOffsetWhileScrolling
// position can be:
// 'start'
// 'center'
// 'end'
//
// XXX use .options.focusOffsetWhileScrolling / nudgeElement(..)
// ...only need to determine direction...
// 'start' -> nudgeElement(this, 'up', elem)
// 'end' -> nudgeElement(this, 'down', elem)
scrollTo: function(pattern, position){
var target = this.get(pattern)
target