mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
compositing: Keep the event loop awake when scrolling.
This commit is contained in:
parent
9e3e361b84
commit
b4b3cbccf7
3 changed files with 24 additions and 6 deletions
|
@ -212,6 +212,7 @@ pub enum Msg {
|
|||
/// Indicates that the scrolling timeout with the given starting timestamp has happened and a
|
||||
/// composite should happen. (See the `scrolling` module.)
|
||||
ScrollTimeout(u64),
|
||||
RecompositeAfterScroll,
|
||||
/// Sends an unconsumed key event back to the compositor.
|
||||
KeyEvent(Key, KeyState, KeyModifiers),
|
||||
/// Changes the cursor.
|
||||
|
@ -240,6 +241,7 @@ impl Debug for Msg {
|
|||
Msg::SetFrameTree(..) => write!(f, "SetFrameTree"),
|
||||
Msg::LoadComplete => write!(f, "LoadComplete"),
|
||||
Msg::ScrollTimeout(..) => write!(f, "ScrollTimeout"),
|
||||
Msg::RecompositeAfterScroll => write!(f, "RecompositeAfterScroll"),
|
||||
Msg::KeyEvent(..) => write!(f, "KeyEvent"),
|
||||
Msg::SetCursor(..) => write!(f, "SetCursor"),
|
||||
Msg::PaintTaskExited(..) => write!(f, "PaintTaskExited"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue