Skip to content

[bug] Resize handles and region selection often click-thru #9810

Description

@sbatchelder

Describe the bug
In the image editor, clicking a Transformer resize handle or clicking a region to select it frequently seems to click-through or miss the resize handle. It either draws a new selection box or click-drags the underlying annotation rectangle. It's easy to tell this will happen because the cursor will not change to the resize-cursor. I've had this happen with polygon vertex handles as well, but I'm going to use the humble RectangleLabel in this issue.

When a rectangle annotation is selected, some of the 8 resize anchors work and others don't, and which ones work changes every time the same box is re-selected. I think this tends to happen on particularly large images (eg 10k+ pixels on a side).

It makes working on large images very frustrating.

To Reproduce
Steps to reproduce the behavior:

  1. Create a label-studio project using the object-detection template.
  2. Create a task with a large image, eg 15,000px x 15,000px
  3. Create an annotation with RectangleLabels
  4. Try to resize the RectangleLabels and notice only some of them afford the bi-directional-arrows resize-cursor
  5. Note how re-selecting a RectangleLabel may change which handles are affected
  6. More RectangleLabels per annotation and high zoom levels may increase likelihood of bad resize handles.

Expected behavior
Every resize handle grabs on the first click, consistently, across repeated re-selects.

Screenshots

Faulty Handle Behavior (below)

Image

_

Functional Handle Behavior (below)

Image

_

Video of Behavior

2026-07-08.17-00-14.webm

Environment (please complete the following information):

  • OS: Ubuntu Linux (X11)
  • Browser: Brave 1.92.138 (64-bit) (Chromium: 150.0.7871.101). Hardware acceleration enabled.
  • Label Studio Version: 1.23.0

Additional context
I believe this issue is related to #4558, #4452 and PR #9700 . These issues frame the problem of inconsistent handle click-behavior as the handles being too small. I don't think that's what's happening, as my experience shows that you don't have to be exactly on-mark to get the resize-cursor IF the resize-cursor is to appear at all. I think it has to do with konva's color-based hit-detection mechanism.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions