ol 7.4.1-dev.1689882133201 → 7.4.1-dev.1689883599547
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.
|
@@ -60,6 +60,11 @@ declare class DblClickDragZoom extends Interaction {
|
|
|
60
60
|
* @private
|
|
61
61
|
*/
|
|
62
62
|
private handlingDoubleDownSequence_;
|
|
63
|
+
/**
|
|
64
|
+
* @type {ReturnType<typeof setTimeout>}
|
|
65
|
+
* @private
|
|
66
|
+
*/
|
|
67
|
+
private doubleTapTimeoutId_;
|
|
63
68
|
/**
|
|
64
69
|
* @type {!Object<string, PointerEvent>}
|
|
65
70
|
* @private
|
|
@@ -98,13 +103,13 @@ declare class DblClickDragZoom extends Interaction {
|
|
|
98
103
|
private updateTrackedPointers_;
|
|
99
104
|
/**
|
|
100
105
|
* Wait the second double finger tap.
|
|
106
|
+
* @private
|
|
101
107
|
*/
|
|
102
|
-
|
|
103
|
-
doubleTapTimeoutId_: NodeJS.Timeout | undefined;
|
|
108
|
+
private waitForDblTap_;
|
|
104
109
|
/**
|
|
105
110
|
* @private
|
|
106
111
|
*/
|
|
107
|
-
private
|
|
112
|
+
private endInteraction_;
|
|
108
113
|
}
|
|
109
114
|
import Interaction from './Interaction.js';
|
|
110
115
|
//# sourceMappingURL=DblClickDragZoom.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DblClickDragZoom.d.ts","sourceRoot":"","sources":["DblClickDragZoom.js"],"names":[],"mappings":";;;;;;;;;;;;;;uBAUuB,OAAO,KAAE,OAAO;;AAJvC;;;;;;;GAOG;AAEH;;;;;GAKG;AACH;IACE;;OAEG;IACH,+
|
|
1
|
+
{"version":3,"file":"DblClickDragZoom.d.ts","sourceRoot":"","sources":["DblClickDragZoom.js"],"names":[],"mappings":";;;;;;;;;;;;;;uBAUuB,OAAO,KAAE,OAAO;;AAJvC;;;;;;;GAOG;AAEH;;;;;GAKG;AACH;IACE;;OAEG;IACH,+CAoDC;IA4GD;;;;;OAKG;IACH,kBAHW,OAAO,GACN,OAAO,CAIlB;IA7JC;;;OAGG;IACH,2BAA8D;IAE9D;;;OAGG;IACH,kBAAwE;IAExE;;;OAGG;IACH,gCAAoC;IAEpC;;;OAGG;IACH,oCAAwC;IAExC;;;OAGG;IACH,4BAAoC;IAEpC;;;OAGG;IACH,yBAA0B;IAE1B;;;OAGG;IACH,0BAHU,MAAM,YAAY,CAAC,CAGL;IA2C1B;;;OAGG;IACH,qFAsBC;IAXC,kCAA6B;IAG3B,oCAAiC;IAUrC;;;;OAIG;IACH,gFAFY,OAAO,CAelB;IAVG,aAAmB;IAGnB,gEAA4B;IAShC;;;;OAIG;IACH,8EAFY,OAAO,CAalB;IAYD;;;OAGG;IACH,+BAeC;IAED;;;OAGG;IACH,uBAYC;IAED;;OAEG;IACH,wBAGC;CACF;wBA9OuB,kBAAkB"}
|
|
@@ -58,6 +58,12 @@ class DblClickDragZoom extends Interaction {
|
|
|
58
58
|
*/
|
|
59
59
|
this.handlingDoubleDownSequence_ = false;
|
|
60
60
|
|
|
61
|
+
/**
|
|
62
|
+
* @type {ReturnType<typeof setTimeout>}
|
|
63
|
+
* @private
|
|
64
|
+
*/
|
|
65
|
+
this.doubleTapTimeoutId_ = undefined;
|
|
66
|
+
|
|
61
67
|
/**
|
|
62
68
|
* @type {!Object<string, PointerEvent>}
|
|
63
69
|
* @private
|
|
@@ -104,7 +110,7 @@ class DblClickDragZoom extends Interaction {
|
|
|
104
110
|
stopEvent = this.stopDown(handled);
|
|
105
111
|
} else {
|
|
106
112
|
stopEvent = this.stopDown(false);
|
|
107
|
-
this.
|
|
113
|
+
this.waitForDblTap_();
|
|
108
114
|
}
|
|
109
115
|
}
|
|
110
116
|
}
|
|
@@ -210,8 +216,9 @@ class DblClickDragZoom extends Interaction {
|
|
|
210
216
|
|
|
211
217
|
/**
|
|
212
218
|
* Wait the second double finger tap.
|
|
219
|
+
* @private
|
|
213
220
|
*/
|
|
214
|
-
|
|
221
|
+
waitForDblTap_() {
|
|
215
222
|
if (this.doubleTapTimeoutId_ !== undefined) {
|
|
216
223
|
// double-click
|
|
217
224
|
clearTimeout(this.doubleTapTimeoutId_);
|
|
@@ -219,7 +226,7 @@ class DblClickDragZoom extends Interaction {
|
|
|
219
226
|
} else {
|
|
220
227
|
this.handlingDoubleDownSequence_ = true;
|
|
221
228
|
this.doubleTapTimeoutId_ = setTimeout(
|
|
222
|
-
this.
|
|
229
|
+
this.endInteraction_.bind(this),
|
|
223
230
|
250
|
|
224
231
|
);
|
|
225
232
|
}
|
|
@@ -228,7 +235,7 @@ class DblClickDragZoom extends Interaction {
|
|
|
228
235
|
/**
|
|
229
236
|
* @private
|
|
230
237
|
*/
|
|
231
|
-
|
|
238
|
+
endInteraction_() {
|
|
232
239
|
this.handlingDoubleDownSequence_ = false;
|
|
233
240
|
this.doubleTapTimeoutId_ = undefined;
|
|
234
241
|
}
|
package/package.json
CHANGED
package/util.js
CHANGED