pxt-microbit icon indicating copy to clipboard operation
pxt-microbit copied to clipboard

Touch events propagate through dropdown into popped out simulator behind

Open kmcnaught opened this issue 4 months ago • 0 comments

Describe the bug If you zoom the page until you have a small popped out simulator in the bottom right, then this sim remains topmost above any blocks. You are unable to place a block in front (z order) of the sim.

However, you can have a block nearby with a dropdown field, that then appears on top of the sim. If you click on it select a dropdown item using a touch event, the touch event opens the sim which is very surprising.

To Reproduce Steps to reproduce the behavior:

  1. Use browser zoom (e.g Ctrl + Shift + Plus on Windows, or broswer settings) until the sim pops out
  2. Place a block such that the drop down is just above (y axis) the sim
  3. Use touch to click on the dropdown and select an option
  4. See the fullscreen sim appear unexpectedly

Expected behavior A clear and concise description of what you expected to happen.

Screenshots

Block with dropdown near sim

Dropdown open, above sim

In the second screenshot, the dropdown is open and appears visually on top of the pop-out sim. If you select one of the dropdown options with a mouse click, all is good. If you select it with touch, the fullscreen sim opens unexpectedly (and, also, the option is selected correctly but you don't see this)

micro:bit version (please complete the following information):

not hardware related

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser Chrome
  • makecode.microbit.org version: 7.0.61
  • Microsoft MakeCode version: 11.1.14

kmcnaught avatar May 28 '25 07:05 kmcnaught