forked from MapComplete/MapComplete
Fix layer toggling
This commit is contained in:
parent
e2ae83536e
commit
662b752a39
4 changed files with 10 additions and 14 deletions
|
@ -53,8 +53,12 @@ export abstract class UIElement {
|
|||
|
||||
if (this._onClick !== undefined) {
|
||||
const self = this;
|
||||
element.onclick = () => {
|
||||
element.onclick = (e) => {
|
||||
if(e.consumed){
|
||||
return;
|
||||
}
|
||||
self._onClick();
|
||||
e.consumed = true;
|
||||
}
|
||||
element.style.pointerEvents = "all";
|
||||
element.style.cursor = "pointer";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue