Merge remote-tracking branch 'origin/main' into editor-movement
This commit is contained in:
commit
2697862a02
41 changed files with 1818 additions and 6079 deletions
|
@ -1047,7 +1047,7 @@ impl<'a> WindowContext<'a> {
|
|||
}
|
||||
|
||||
/// Dispatch a mouse or keyboard event on the window.
|
||||
fn dispatch_event(&mut self, event: InputEvent) -> bool {
|
||||
pub fn dispatch_event(&mut self, event: InputEvent) -> bool {
|
||||
let event = match event {
|
||||
// Track the mouse position with our own state, since accessing the platform
|
||||
// API for the mouse position can only occur on the main thread.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue