Skip to content

Commit

Permalink
Bug 1698441 - Remove call to synthesizeNativeWheelAndWaitForWheelEven…
Browse files Browse the repository at this point in the history
…t. r=tnikkel

This test is not actually run in CI (disabled via mochitest.ini), so
this has zero effect. Even if it did run, the call to
synthesizeNativeWheelAndWaitForWheelEvent is not passing in a callback
function; it runs the following rAF line immediately. So calling the
function that "waits for the wheel event" is pointless, we can just
call the version that synthesizes the native wheel input and it is
functionally identical.

Depends on D108441

Differential Revision: https://phabricator.services.mozilla.com/D108442
  • Loading branch information
staktrace committed Mar 16, 2021
1 parent 4df00b4 commit 13f63c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gfx/layers/apz/test/mochitest/test_smoothness.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
// Scroll diff
var dx = 0;
var dy = -10; // Negative to scroll down
synthesizeNativeWheelAndWaitForWheelEvent(scrollDiv, x, y, dx, dy);
synthesizeNativeWheel(scrollDiv, x, y, dx, dy);
window.requestAnimationFrame(sendScrollEvent);
} else {
// Locally, with silk and apz + e10s, retina 15" mbp usually get ~1.0 - 1.5
Expand Down

0 comments on commit 13f63c8

Please sign in to comment.