Skip to content

Fix the pointerdown event listener issue related to Drag to Select #119

@LappiLappland

Description

@LappiLappland

Check for duplicates

  • I have searched for similar issues before opening a new one.

Description

Currently, there is an issue related to the pointerdown event listener workaround for the setStartBlock gesture handling. The SVG root of a block that has a next block overlaps with that next block. So, when we try to remove the pointerdown event listener for the next block, it does not matter as the pointerdown event listener for the parent (higher level) block is still present. (a fix may be introduced when the Blockly team introduces proper gesture handling for setStartBlock.)

Reproduction steps

Example 1:

  1. Multi-select blocks
  2. Click on any next connected block (beneath or to the right)

Expected: only pressed block is selected, others get deselected

Reality: click is ignored

Example 2:

  1. Paste blocks (can be a single block or multiple blocks)
  2. Insert new blocks into group
  3. Click on any next connected block (beneath or to the right)

Expected: only pressed block is selected, others get deselected

Reality: click is ignored

Stack trace

Screenshots

issue.mp4

Browsers

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions