@webqit/webflo 0.8.61 → 0.8.64-0
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,16 +145,19 @@ 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(() => {
|
|
149
|
+
let vieportTop;
|
|
150
150
|
if (clientNavigationEvent.url.hash && (urlTarget = document.querySelector(clientNavigationEvent.url.hash))) {
|
|
151
|
-
urlTarget.scrollIntoView(
|
|
151
|
+
urlTarget.scrollIntoView();
|
|
152
|
+
} else if (vieportTop = Array.from(document.querySelectorAll('[data-viewport-top]')).pop()) {
|
|
153
|
+
vieportTop.focus();
|
|
152
154
|
} else {
|
|
153
|
-
|
|
155
|
+
document.documentElement.classList.add('scroll-reset');
|
|
156
|
+
document.body.scrollIntoView();
|
|
157
|
+
setTimeout(() => {
|
|
158
|
+
document.documentElement.classList.remove('scroll-reset');
|
|
159
|
+
}, 600);
|
|
154
160
|
}
|
|
155
|
-
setTimeout(() => {
|
|
156
|
-
document.documentElement.classList.remove('scroll-reset');
|
|
157
|
-
}, 400);
|
|
158
161
|
}, 0);
|
|
159
162
|
}
|
|
160
163
|
|
|
@@ -108,6 +108,7 @@ export default async function(Ui, flags = {}) {
|
|
|
108
108
|
|
|
109
109
|
// ---------------------------------------------
|
|
110
110
|
|
|
111
|
+
console.log('-----------------------------------', setup.server);
|
|
111
112
|
if (!flags['https-only']) {
|
|
112
113
|
|
|
113
114
|
Http.createServer((request, response) => {
|