@aibee/crc-bmap 0.8.14 → 0.8.15

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/lib/bmap.esm.js CHANGED
@@ -10805,7 +10805,8 @@ var PositionNavigation = class extends EventDispatcher13 {
10805
10805
  let index = pointIndex;
10806
10806
  let dir = "front" /* FRONT */;
10807
10807
  let distance = 0;
10808
- while (dir === "front" /* FRONT */ && distance < this.options.directionEmitThreshold) {
10808
+ let t = Date.now();
10809
+ while (dir === "front" /* FRONT */ && distance < this.options.directionEmitThreshold && Date.now() - t < 5) {
10809
10810
  const p1 = curRoutePathPoints[index];
10810
10811
  const p2 = curRoutePathPoints[index + 1];
10811
10812
  const p3 = curRoutePathPoints[index + 2];