Fix unresponsive area

This commit is contained in:
Pieter Vander Vennet 2021-09-06 21:56:58 +02:00
parent 26b0db8c58
commit d7b0987960
2 changed files with 7 additions and 6 deletions

View file

@ -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) {