pxt-microbit
pxt-microbit copied to clipboard
Deleting a comment with touch breaks (almost) all interaction
Describe the bug If you use a touch screen to delete a comment, then you are stuck in a state where you cannot select any blocks, move any blocks, or edit any fields (using either mouse or touch).
The only way out of it that I have found so far is to edit a "show LEDs" block (which is a strange field that can be edited without explicitly selecting/opening the field). This resets something in the interaction that makes touch and mouse work again.
To Reproduce Steps to reproduce the behavior:
- Have a program with a few blocks, e.g. "show number" and "show icon"
- Add a comment to block
- Using touch delete the comment by clicking on the bin icon
- Error: Now you cannot interact with any blocks except a "show leds"
Expected behavior I expect mouse and touch control to continue working
Screenshots A 20 second video demo on Windows
micro:bit version (please complete the following information): Not hardware related
Desktop:
- OS: Windows 11 (Surface Pro with touch screen)
- Browser: Chrome Version 136.0.7103.114 (Official Build) (64-bit)
makecode.microbit.org version: 7.0.61 Microsoft MakeCode version: 11.1.14 microbit runtime version: v2.2.0-rc6 codal-microbit-v2 runtime version: v0.2.68
Smartphone (please complete the following information):
- Samsung Galaxy Tab A9+
- OS: Android 14; SM-X210 build
- Browser: Chrome, preinstalled. 126.0.6478.110
** Other context **
I have replicated the same behaviour on both Windows and Android