add onClick-event on touchstart for mobile devices

This commit is contained in:
RobertOrthofer 2025-10-27 10:23:59 +01:00
parent 7b7a696da0
commit 9582f56707

View File

@ -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");