mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-24 20:45:56 +03:00
[PR #123] [MERGED] Pass through mouse down event when starting selection #305
Labels
No labels
bug
core
documentation
feature
good first issue
help wanted
pull-request
question
react
solid
tmux
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/opentui#305
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/anomalyco/opentui/pull/123
Author: @kommander
Created: 9/2/2025
Status: ✅ Merged
Merged: 9/2/2025
Merged by: @kommander
Base:
main← Head:fix-select-on-drag📝 Commits (3)
fd49cd6stash275a193revertbccc8a4pass through mousedown event when starting selection📊 Changes
2 files changed (+5 additions, -1 deletions)
View changed files
📝
packages/core/src/examples/mouse-interaction-demo.ts(+3 -1)📝
packages/core/src/renderer.ts(+2 -0)📄 Description
When a renderable is
selectable, it will start the selection, but pass through themousedownevent, so when releasing the button immediately, no selection happens andmousedowncan be handled by the renderable. To avoid actually selecting the text in a text renderable one still has to setselectable=false, for a button component for example. So you can have both.Should solve #112
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.