mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
fix: panic when mouse leave on Windows (#37587)
Add mouse leave event to the check to prevent panic. Fixes: #37586 Signed-off-by: Wu Yu Wei <yuweiwu@pm.me>
This commit is contained in:
parent
30ad91b595
commit
c9d503c458
1 changed files with 4 additions and 1 deletions
|
@ -432,7 +432,10 @@ impl WebViewRenderer {
|
||||||
InputEvent::Touch(ref mut touch_event) => {
|
InputEvent::Touch(ref mut touch_event) => {
|
||||||
touch_event.init_sequence_id(self.touch_handler.current_sequence_id);
|
touch_event.init_sequence_id(self.touch_handler.current_sequence_id);
|
||||||
},
|
},
|
||||||
InputEvent::MouseButton(_) | InputEvent::MouseMove(_) | InputEvent::Wheel(_) => {
|
InputEvent::MouseButton(_) |
|
||||||
|
InputEvent::MouseLeave(_) |
|
||||||
|
InputEvent::MouseMove(_) |
|
||||||
|
InputEvent::Wheel(_) => {
|
||||||
self.global
|
self.global
|
||||||
.borrow_mut()
|
.borrow_mut()
|
||||||
.update_cursor_from_hittest(point, &result);
|
.update_cursor_from_hittest(point, &result);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue