gpui-component/crates
FlyingYu a792719dbe
editor: Fix cursor direction not resetting after mouse up (#1708)
## Description

This PR fixes an issue where the editor's "reverse cursor" state was not
reset
after completing a text selection. Because the flag remained `true`, the
cursor
could appear on the wrong side of the selection when the next
interaction
started.

## Screenshot

| Before | After |
|--------|--------|
| <video
src="https://github.com/user-attachments/assets/308c5119-52da-4bdb-9a94-36617d957c63"
controls width="360"></video> | <video
src="https://github.com/user-attachments/assets/bf9328b4-96d8-48df-9cc0-99fccaced7c5"
controls width="360"></video> |

## How to Test

`cargo run --example editor`

## Checklist

- [x] I have read the [CONTRIBUTING](../CONTRIBUTING.md) document and
followed the guidelines.
- [ ] Reviewed the changes in this PR and confirmed AI generated code
(If any) is accurate.
- [x] Passed `cargo run` for story tests related to the changes.
- [ ] Tested macOS, Windows and Linux platforms performance (if the
change is platform-specific)
2025-12-01 11:06:40 +08:00
..
assets Bump v0.5.0-preview0 2025-11-27 14:49:36 +08:00
macros Bump v0.5.0-preview0 2025-11-27 14:49:36 +08:00
reqwest_client Bump v0.5.0-preview0 2025-11-27 14:49:36 +08:00
story input: Add to support CodeEditor as single line mode. (#1696) 2025-11-28 19:51:40 +08:00
ui editor: Fix cursor direction not resetting after mouse up (#1708) 2025-12-01 11:06:40 +08:00