microsoft / pxt-calliope

A Microsoft MakeCode editor for the Calliope Mini board
https://makecode.calliope.cc
Other
39 stars 22 forks source link

Simulator not triggering events in latest chromium based browsers #296

Closed Amerlander closed 3 months ago

Amerlander commented 4 months ago

Description: After the update to Microsoft Edge Version 125.0.2535.79 and Google Chrome Version 125.0.6422.142, the simulator in MakeCode no longer triggers events when buttons or pins are interacted with. The inputs seem clickable, but does not react visually on click. This issue does not occur in other browsers or older versions of Edge and Chrome.

Steps to Reproduce:

  1. Open MakeCode on a Windows 10 or 11 machine with Edge Version 125.0.2535.79 or Chrome Version 125.0.6422.142.
  2. Create a simple program with events such as "when button A is pressed" or "when pin 0 is touched".
  3. Run the simulator and try interacting with the buttons or pins.

Expected Behavior: The simulator should react on interaction and execute the code within the event blocks when buttons or pins are interacted with.

Actual Behavior: The simulator does not react on clicks and does not execute the code within the event blocks.

Additional Information:

Forum Discussion (german):

System Information:

Notes:

Amerlander commented 4 months ago

@abchatra I'm stuck on this issue. I don't really have any idea how to debug it. Do you know why the simulator behaves differently on the hosted version compared to my development environment?

abchatra commented 4 months ago

@riknoll ?

riknoll commented 3 months ago

will take a look today!

riknoll commented 3 months ago

I'm able to repro this as well, seeing the same behavior as @Amerlander where it doesn't repro when serving from the cli but it does repro on the live site (including when I uploaded a local target). I also have confirmed that this isn't a case of one event listener preventing propagation to another; it seems like the browser is genuinely not firing the events on the hosted site.

Kind of stumped as to what to do here, but at least I can reproduce it easily. I'll try a few things and see if any of them happen to fix it. Will update when I have more info.