mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Fix #15513: Stop spacebar scrolling directly from the glutin window.
This commit is contained in:
parent
216a89f776
commit
d8afa93cef
1 changed files with 2 additions and 4 deletions
|
@ -1042,8 +1042,7 @@ impl WindowMethods for Window {
|
|||
self.event_queue.borrow_mut().push(WindowEvent::Navigation(WindowNavigateMsg::Back));
|
||||
}
|
||||
|
||||
(NONE, None, Key::PageDown) |
|
||||
(NONE, Some(' '), _) => {
|
||||
(NONE, None, Key::PageDown) => {
|
||||
let scroll_location = ScrollLocation::Delta(TypedPoint2D::new(0.0,
|
||||
-self.framebuffer_size()
|
||||
.to_f32()
|
||||
|
@ -1052,8 +1051,7 @@ impl WindowMethods for Window {
|
|||
self.scroll_window(scroll_location,
|
||||
TouchEventType::Move);
|
||||
}
|
||||
(NONE, None, Key::PageUp) |
|
||||
(SHIFT, Some(' '), _) => {
|
||||
(NONE, None, Key::PageUp) => {
|
||||
let scroll_location = ScrollLocation::Delta(TypedPoint2D::new(0.0,
|
||||
self.framebuffer_size()
|
||||
.to_f32()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue