mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
also send Start phase on receiving first scroll event
This commit is contained in:
parent
816b2969c3
commit
48e3ecf71c
1 changed files with 1 additions and 0 deletions
|
@ -1081,6 +1081,7 @@ impl<Window: WindowMethods> IOCompositor<Window> {
|
|||
delta: TypedPoint2D<f32, DevicePixel>,
|
||||
cursor: TypedPoint2D<i32, DevicePixel>) {
|
||||
let event_phase = match (self.scroll_in_progress, self.in_scroll_transaction) {
|
||||
(false, None) => ScrollEventPhase::Start,
|
||||
(false, Some(last_scroll)) if last_scroll.elapsed() > Duration::from_millis(80) =>
|
||||
ScrollEventPhase::Start,
|
||||
(_, _) => ScrollEventPhase::Move(self.scroll_in_progress),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue