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.
- package/dist/itowns.js +1 -1
- package/dist/itowns.js.map +1 -1
- package/lib/Controls/StateControl.js +2 -2
- package/package.json +1 -1
|
@@ -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
|
|
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.
|
|
380
|
+
this.currentState = this.ZOOM;
|
|
381
381
|
this.dispatchEvent({
|
|
382
382
|
type: this.ZOOM._event,
|
|
383
383
|
delta: event.deltaY,
|