mirror of
https://github.com/openglobus/openglobus.git
synced 2025-12-08 19:25:27 +00:00
add onClick-event on touchstart for mobile devices
This commit is contained in:
parent
7b7a696da0
commit
9582f56707
@ -102,8 +102,8 @@ export class CompassButton extends Control {
|
||||
});
|
||||
|
||||
btn.appendTo(this.renderer!.div!);
|
||||
|
||||
btn.events.on("click", this._onClick, this);
|
||||
btn.events.on("touchstart", this._onClick, this);
|
||||
|
||||
this._svg = btn.select("svg");
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user