Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2019-06-20 22:06:52 +03:00
parent 5d8b79f8cc
commit 66df691aad

View File

@ -3875,7 +3875,8 @@ var BrowserPrototype = {
scrollTo: function(pattern, position){
var target = this.get(pattern)
target
&& getElem(target).scrollIntoView({
&& getElem(target)
.scrollIntoView({
behavior: (this.options || {}).scrollBehavior || 'auto',
block: position || 'center',
}) },