Skip to content

fix(seer): Prevent text selection loss during mouse drag in explorer …#109395

Draft
isaacwang-sentry wants to merge 1 commit intomasterfrom
iwang/explorer_text_selection
Draft

fix(seer): Prevent text selection loss during mouse drag in explorer …#109395
isaacwang-sentry wants to merge 1 commit intomasterfrom
iwang/explorer_text_selection

Conversation

@isaacwang-sentry
Copy link
Member

When users click and drag to select text across block boundaries in the Seer Explorer panel, onMouseEnter handlers fire setFocusedBlockIndex(), causing React re-renders that destroy the active selection. Track mouse-button-down state via a ref and suppress focus changes during drag operations.

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

…panel

When users click and drag to select text across block boundaries in the
Seer Explorer panel, onMouseEnter handlers fire setFocusedBlockIndex(),
causing React re-renders that destroy the active selection. Track
mouse-button-down state via a ref and suppress focus changes during drag
operations.

Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Feb 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant