windows: Fix title bar not responsing (#31532)

张小白 created

Closes #31431

Release Notes:

- N/A

Change summary

crates/gpui/src/platform/windows/events.rs | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

Detailed changes

crates/gpui/src/platform/windows/events.rs 🔗

@@ -1006,7 +1006,8 @@ fn handle_nc_mouse_down_msg(
             click_count,
             first_mouse: false,
         });
-        let handled = !func(input).propagate;
+        let result = func(input.clone());
+        let handled = !result.propagate || result.default_prevented;
         state_ptr.state.borrow_mut().callbacks.input = Some(func);
 
         if handled {