forked from MapComplete/MapComplete
Fix unresponsive area
This commit is contained in:
parent
26b0db8c58
commit
d7b0987960
2 changed files with 7 additions and 6 deletions
|
@ -274,10 +274,11 @@ export class InitUiElements {
|
|||
const help = new MapControlButton(Svg.help_svg());
|
||||
help.onClick(() => isOpened.setData(true));
|
||||
new Toggle(
|
||||
fullOptions.SetClass("welcomeMessage"),
|
||||
help,
|
||||
fullOptions.SetClass("welcomeMessage pointer-events-auto"),
|
||||
help.SetClass("pointer-events-auto"),
|
||||
isOpened
|
||||
).AttachTo("messagesbox");
|
||||
)
|
||||
.AttachTo("messagesbox");
|
||||
const openedTime = new Date().getTime();
|
||||
State.state.locationControl.addCallback(() => {
|
||||
if (new Date().getTime() - openedTime < 15 * 1000) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue