itowns 2.44.3-next.12 → 2.44.3-next.13

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.
@@ -257,7 +257,7 @@ class StateControl extends THREE.EventDispatcher {
257
257
  touchToState(finger) {
258
258
  for (const key of Object.keys(DEFAULT_STATES)) {
259
259
  const state = this[key];
260
- if (state.enable && finger == state.finger) {
260
+ if (state.enable && finger === state.finger) {
261
261
  return state;
262
262
  }
263
263
  }
@@ -377,7 +377,7 @@ class StateControl extends THREE.EventDispatcher {
377
377
  event.preventDefault();
378
378
  if (this.enabled && this.ZOOM.enable) {
379
379
  viewCoords.copy(this._view.eventToViewCoords(event));
380
- this.currentState = this.NONE;
380
+ this.currentState = this.ZOOM;
381
381
  this.dispatchEvent({
382
382
  type: this.ZOOM._event,
383
383
  delta: event.deltaY,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itowns",
3
- "version": "2.44.3-next.12",
3
+ "version": "2.44.3-next.13",
4
4
  "description": "A JS/WebGL framework for 3D geospatial data visualization",
5
5
  "type": "module",
6
6
  "main": "lib/Main.js",