git.lucas.co / cce-ui
GPU-accelerated UI toolkit (Vulkan)
git clone https://git.lucas.co/cce-ui.git

commitd85a646fedcc527a84a44185902f4784d97e1445
parent122c90613f
authorLucas Galante <[email protected]>
date2026-06-17 11:01
Allow partial text overlap with overlays by moving left boundary instead of collapsing

 src/backend/window_runner.rs | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/backend/window_runner.rs b/src/backend/window_runner.rs
index 743efa6..530e958 100644
--- a/src/backend/window_runner.rs
+++ b/src/backend/window_runner.rs
@@ -947,10 +947,8 @@ pub trait Application: Sized + 'static {
                     {
                         if tx_pixel < ol as f32 {
                             item_bounds.right = item_bounds.right.min(ol);
-                        } else if tx_pixel > or as f32 {
-                            item_bounds.left = item_bounds.left.max(or);
                         } else {
-                            item_bounds.right = item_bounds.left;
+                            item_bounds.left = item_bounds.left.max(or);
                         }
                     }
                 }