Merge pull request #942 from RobertOrthofer/fix-compass-button-mobile

Fix `CompassButton` for mobile devices
This commit is contained in:
Michael Gevlich 2025-10-29 12:31:41 +04:00 committed by GitHub
commit 88820262cf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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