From 48e3ecf71c3527853b65ec550446885e7aeea515 Mon Sep 17 00:00:00 2001 From: Gregory Date: Thu, 15 Dec 2016 00:06:34 +0100 Subject: [PATCH] also send Start phase on receiving first scroll event --- components/compositing/compositor.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/components/compositing/compositor.rs b/components/compositing/compositor.rs index 4d8cffb7518..136be6eaea0 100644 --- a/components/compositing/compositor.rs +++ b/components/compositing/compositor.rs @@ -1081,6 +1081,7 @@ impl IOCompositor { delta: TypedPoint2D, cursor: TypedPoint2D) { 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),