Skip to content

Conversation

@dlrobertson
Copy link
Member

For a given scroll, no scrollend events should be fired after the last scroll event was fired.

CC: @hiikezoe @theres-waldo


assert_true(scroll_event_count > 0, "A scroll event has fired");

await waitForCompositorCommit();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer using two rAFs instead of waitForCompositorCommit, the function might be changed in future.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 sounds good

@hiikezoe
Copy link
Contributor

hiikezoe commented Apr 2, 2024

It would be nice to have a link to https://bugzilla.mozilla.org/show_bug.cgi?id=1881974 in the test itself.

For a given scroll, no scrollend events should be fired after the last
scroll event was fired.
@dlrobertson dlrobertson force-pushed the scrollend-follows-scroll branch from 4ebecd4 to 2744b48 Compare April 2, 2024 14:58
@dlrobertson
Copy link
Member Author

It would be nice to have a link to https://bugzilla.mozilla.org/show_bug.cgi?id=1881974 in the test itself.

Good suggestions! Updated the tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants