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

Deleting a comment with touch breaks (almost) all interaction

Open kmcnaught opened this issue 6 months ago • 2 comments

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:

  1. Have a program with a few blocks, e.g. "show number" and "show icon"
  2. Add a comment to block
  3. Using touch delete the comment by clicking on the bin icon
  4. 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

kmcnaught avatar May 27 '25 11:05 kmcnaught

I have just verified that this also occurs in MakeCode Arcade, so probably needs moving over to pxt repo?

kmcnaught avatar May 27 '25 12:05 kmcnaught

@kmcnaught thanks for filing. Issue in this repo is fine. We will investigate.

abchatra avatar May 29 '25 20:05 abchatra

I raised https://github.com/google/blockly/issues/9170 in Blockly covering the odd touch interactions with comments.

microbit-matt-hillsdon avatar Jun 26 '25 15:06 microbit-matt-hillsdon

my pr for this was merged so hopefully this will be in the next release: https://github.com/google/blockly/pull/9172

riknoll avatar Jun 26 '25 21:06 riknoll