From 1a55783b3770049cb630e0c28ef4b772e193f219 Mon Sep 17 00:00:00 2001 From: alex-ds13 <145657253+alex-ds13@users.noreply.github.com> Date: Tue, 25 Nov 2025 16:11:31 +0000 Subject: fix: outbounds selecting when inside a scrollable - If we were dragging a selection and move the mouse out of bounds of the text widget and an the same time it went out of bounds of a parent scrollable, the cursor would be levitated so we weren't getting it's cursor position. Now we land the cursor before checking the position. --- src/text/rich.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/text') diff --git a/src/text/rich.rs b/src/text/rich.rs index 30a9e81..9f53387 100644 --- a/src/text/rich.rs +++ b/src/text/rich.rs @@ -661,7 +661,7 @@ where } Event::Mouse(mouse::Event::CursorMoved { .. }) | Event::Touch(touch::Event::FingerMoved { .. }) => { - if let Some(position) = cursor.position() + if let Some(position) = cursor.land().position() && let Some(dragging) = state.dragging { let (line, index) = state -- cgit v1.2.3