Skip to content

Commit

Permalink
also send Start phase on receiving first scroll event
Browse files Browse the repository at this point in the history
  • Loading branch information
gterzian committed Dec 14, 2016
1 parent 816b296 commit 48e3ecf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/compositing/compositor.rs
Expand Up @@ -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),
Expand Down

0 comments on commit 48e3ecf

Please sign in to comment.