From 658833ac43eddf3352987121bcb7708a6d048a41 Mon Sep 17 00:00:00 2001 From: Jack Taylor Date: Thu, 12 Nov 2026 11:42:09 -0500 Subject: [PATCH] Textbox: Don't sink scroll when there's nothing to scroll --- crates/yakui-widgets/src/widgets/textbox.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/crates/yakui-widgets/src/widgets/textbox.rs b/crates/yakui-widgets/src/widgets/textbox.rs index 318f2112..9faba2ce 100644 --- a/crates/yakui-widgets/src/widgets/textbox.rs +++ b/crates/yakui-widgets/src/widgets/textbox.rs @@ -435,6 +435,12 @@ impl Widget for TextBoxWidget { delta, modifiers: _, } => { + let text_res = self.render_text_response; + let area = text_res.measured_size.y - text_res.physical_size.y; + if area <= 0.0 { + return EventResponse::Bubble; + } + fonts.with_inner(|fonts| { editor.action( &mut fonts.font_system,