@ecopages/browser-router 0.2.0-beta.6 → 0.2.0-beta.8

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ecopages/browser-router",
3
- "version": "0.2.0-beta.6",
3
+ "version": "0.2.0-beta.8",
4
4
  "description": "Client-side router for Ecopages with view transitions support",
5
5
  "keywords": [
6
6
  "ecopages",
@@ -35,7 +35,7 @@
35
35
  "morphdom": "^2.7.8"
36
36
  },
37
37
  "peerDependencies": {
38
- "@ecopages/core": "0.2.0-beta.6"
38
+ "@ecopages/core": "0.2.0-beta.8"
39
39
  },
40
40
  "types": "./src/index.d.ts"
41
41
  }
@@ -182,6 +182,10 @@ class EcoRouter {
182
182
  return;
183
183
  }
184
184
  const navigationRuntime = getEcoNavigationRuntime(window);
185
+ navigationRuntime.cancelCurrentNavigationTransaction();
186
+ this.pendingNavigations = 0;
187
+ this.queuedNavigationHref = null;
188
+ this.pendingPointerNavigation = null;
185
189
  document.addEventListener("pointerdown", this.handlePointerDown, true);
186
190
  document.addEventListener("click", this.handleClick, true);
187
191
  window.addEventListener("popstate", this.handlePopState);