From 8b1e20fd8fd2ada3c15692963b6f49e606f9e000 Mon Sep 17 00:00:00 2001 From: aiongg <67543387+aiongg@users.noreply.github.com> Date: Wed, 4 Nov 2026 15:40:44 +0000 Subject: [PATCH] Apply review fixes - crates/ui-egui/src/app/input.rs - crates/ui-egui/src/services.rs --- crates/ui-egui/src/app/input.rs | 1 + crates/ui-egui/src/services.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/ui-egui/src/app/input.rs b/crates/ui-egui/src/app/input.rs index 2682478c4..1972faf03 100644 --- a/crates/ui-egui/src/app/input.rs +++ b/crates/ui-egui/src/app/input.rs @@ -166,6 +166,7 @@ impl DesignApp { /// Where the pointer is in the window, asked of the system ([`crate::Services::pointer`]), /// for files dropped without pointer events: dragged in from another application, they bring /// none. `None` when the system doesn't say or the window's place isn't known. + #[cfg(not(target_arch = "wasm32"))] pub(crate) fn system_pointer(&self, ctx: &egui::Context) -> Option { let at = (self.services.pointer.as_ref()?)()?; // The system's points are unscaled; egui's (the window's rect too) are divided by the diff --git a/crates/ui-egui/src/services.rs b/crates/ui-egui/src/services.rs index 107e9e775..384a75b4b 100644 --- a/crates/ui-egui/src/services.rs +++ b/crates/ui-egui/src/services.rs @@ -47,6 +47,6 @@ pub struct Services { /// The pointer's place on the screen, asked when a file is dropped: a file dragged in from /// another application brings no pointer events with it (winit reports none during a drag on /// macOS), so without it a drop can't tell which frame it landed on. `None`: a drop without - /// pointer events loads the place cursor. + /// pointer events lands in the middle of the view. pub pointer: Option, }