egui/crates
Fleabit 5432f91a4d
Have non-resizable Areas ignore mouse input just beyond their bounds (#3039)
As described in #576, the method `Memory::layer_id_at` expands the
hit-testing region for every `Area` slightly. This is necessary so that,
when the user clicks to resize a `Window`, the mouse input isn't routed
to a different `Window`.

For non-resizable `Area`s (such as dropdown menus, context menus, date
pickers, and any non-resizable `Window`), this causes them to be
surrounded by a "dead zone" where any underlying widgets can't be
hovered or clicked. The effect is particularly noticeable in menu bars.

This commit adds a persisted `edges_padded_for_resize` property to
`Area`, which is `true` when the `Area` belongs to a resizable `Window`
and `false` for all other `Area`s. The hit-testing region is only
expanded when this property is `true`.

---------

Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
2024-01-07 17:04:29 +01:00
..
ecolor Add `DragValue`s for RGB(A) in the color picker (#2734) 2024-01-07 16:12:59 +01:00
eframe `eframe`: Fix building the `wasm32` docs for `docs.rs` (#3757) 2023-12-31 10:26:02 +01:00
egui Have non-resizable Areas ignore mouse input just beyond their bounds (#3039) 2024-01-07 17:04:29 +01:00
egui-wgpu Bump `winit` to `0.29.7` (#3753) 2024-01-02 07:27:52 +01:00
egui-winit Ignore extra SHIFT and ALT when matching modifiers (#3769) 2024-01-05 10:53:14 +01:00
egui_demo_app Fix some clippy 1.75 lints (#3754) 2023-12-30 11:23:21 +01:00
egui_demo_lib Implemented window header color change when focused (on top). (#3515) 2024-01-07 16:57:32 +01:00
egui_extras Fix: apply edited `DragValue` when it looses focus (#3776) 2024-01-06 23:51:51 +01:00
egui_glow Fix typo in `crates/egui_glow/README.md` (#2956) 2024-01-07 16:31:34 +01:00
egui_plot Add a public API for overriding plot legend traces' visibilities (#3534) 2024-01-06 22:35:54 +01:00
egui_web Fix typos (#2866) 2023-04-18 15:52:45 +02:00
emath Add a bunch of `#[inline]` 2023-12-18 17:28:47 +01:00
epaint Fix: allow using the full Private Use Area for custom fonts (#3509) 2024-01-06 22:33:08 +01:00