@webqit/webflo 0.8.62 → 0.8.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -145,7 +145,6 @@ export default function(layout, params) {
|
|
|
145
145
|
// --------
|
|
146
146
|
|
|
147
147
|
if (/*document.activeElement === document.body && */event && _isObject(event.detail) && (event.detail.src instanceof Element) && /* do only on url path change */ _before(event.value, '?') !== _before(event.oldValue, '?')) {
|
|
148
|
-
document.documentElement.classList.add('scroll-reset');
|
|
149
148
|
setTimeout(() => {
|
|
150
149
|
let vieportTop;
|
|
151
150
|
if (clientNavigationEvent.url.hash && (urlTarget = document.querySelector(clientNavigationEvent.url.hash))) {
|
|
@@ -153,11 +152,12 @@ export default function(layout, params) {
|
|
|
153
152
|
} else if (vieportTop = Array.from(document.querySelectorAll('[data-viewport-top]')).pop()) {
|
|
154
153
|
vieportTop.focus();
|
|
155
154
|
} else {
|
|
155
|
+
document.documentElement.classList.add('scroll-reset');
|
|
156
156
|
document.body.scrollIntoView();
|
|
157
|
+
setTimeout(() => {
|
|
158
|
+
document.documentElement.classList.remove('scroll-reset');
|
|
159
|
+
}, 600);
|
|
157
160
|
}
|
|
158
|
-
setTimeout(() => {
|
|
159
|
-
document.documentElement.classList.remove('scroll-reset');
|
|
160
|
-
}, 600);
|
|
161
161
|
}, 0);
|
|
162
162
|
}
|
|
163
163
|
|