import change from rmottola/Arctic-Fox:

- revert PaleMoon HSCROLL (077a87aed)
- If APZ is enabled, do not handle wheel-event scrolling in layout. (bug 1126090 part 1) (8c0ba79d6)
- Factor out how APZ-aware events are dispatched from widgets. (bug 1126090 part 2) (fb6b7e57b)
- Events synthesized in the child process must be propagated back to the parent. (bug 1126090 part 3) (5a4c9439e)
- Translate coordinates in events synthesized from the child process. (bug 1126090 part 4) (5148f7fc2)
- Wait for all paints to flush before synthesizing scroll events. (bug 1126090 part 5) (b99a19995)
- Don't try to async scroll frames that have less than one pixel of scrollability. (bug 1126090 part 7) (475ffa090)
This commit is contained in:
2019-05-31 07:25:07 +08:00
parent 365b9b17b6
commit 30bc5e7c6d
20 changed files with 131 additions and 58 deletions
+1 -3
View File
@@ -1030,9 +1030,7 @@ nsDOMWindowUtils::SendWheelEvent(float aX,
wheelEvent.refPoint = ToWidgetPoint(CSSPoint(aX, aY), offset, presContext);
nsEventStatus status;
nsresult rv = widget->DispatchEvent(&wheelEvent, status);
NS_ENSURE_SUCCESS(rv, rv);
widget->DispatchAPZAwareEvent(&wheelEvent);
bool failedX = false;
if ((aOptions & WHEEL_EVENT_EXPECTED_OVERFLOW_DELTA_X_ZERO) &&