afrokick / muonlinejs

12 stars 1 forks source link

Can't click on buttons #7

Open neriyaco opened 1 month ago

neriyaco commented 1 month ago

Hi, this is a great project!

When starting the app I couldn't click on anything, after some debugging I found that the issue is in style.less, specifically this css rule:

#root,
.app {
  height: 100%;
  display: grid;
  position: relative;
  pointer-events: none; // <-- This
}

I don't know why you put it there, maybe it should be on the canvas and maybe after the game initialize.

afrokick commented 6 days ago

Yeah, all events should be processed by canvas, but for GUI you can override it like pointer-events: auto,