mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 10:20:08 +00:00
...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
5d8b79f8cc
commit
66df691aad
@ -3875,10 +3875,11 @@ var BrowserPrototype = {
|
|||||||
scrollTo: function(pattern, position){
|
scrollTo: function(pattern, position){
|
||||||
var target = this.get(pattern)
|
var target = this.get(pattern)
|
||||||
target
|
target
|
||||||
&& getElem(target).scrollIntoView({
|
&& getElem(target)
|
||||||
behavior: (this.options || {}).scrollBehavior || 'auto',
|
.scrollIntoView({
|
||||||
block: position || 'center',
|
behavior: (this.options || {}).scrollBehavior || 'auto',
|
||||||
}) },
|
block: position || 'center',
|
||||||
|
}) },
|
||||||
|
|
||||||
|
|
||||||
// Navigation...
|
// Navigation...
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user