Finding the moveTolerance option (great improvement with touch screens).

This commit is contained in:
vdv committed 2022-11-29 22:38:08 +01:00
1 parent ca37281a0b
commit 079a36c1de
1 file changed
+2 -1
+2 -1
View File
@@ -191,6 +191,7 @@ const Map: Component = () => {
new Rotate(),
new ScaleLine({ bar: true }),
]),
moveTolerance: 10,
interactions: new Collection<Interaction>([
new DragRotate(),
new DoubleClickZoom(),
@@ -204,7 +205,7 @@ const Map: Component = () => {
]),
});
olMap.on(['moveend'], changeListener);
olMap.on(['click'], clickHandler);
olMap.on(['singleclick'], clickHandler);
setMap(olMap);
setBranch('/', { vectorLayer: vectorLayer });