mirror of
https://github.com/kamranahmedse/driver.js.git
synced 2026-11-02 22:17:14 +08:00
Fixes - Scroll issue on navigating away
This commit is contained in:
+1
-1
@@ -109,7 +109,7 @@ export default class Element {
|
||||
|
||||
try {
|
||||
this.node.scrollIntoView(this.options.scrollIntoViewOptions || {
|
||||
behavior: 'smooth',
|
||||
behavior: 'instant',
|
||||
block: 'center',
|
||||
});
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user