Closed Bug 1896270 Opened 1 year ago Closed 1 year ago

Scroll-snap event fires scrollend twice on release

Categories

(Core :: Layout: Scrolling and Overflow, enhancement)

Firefox 125
enhancement

Tracking

()

RESOLVED DUPLICATE of bug 1900241

People

(Reporter: github, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0

Steps to reproduce:

Assuming we scroll divs in a div.

A handler for on-scroll-end indicate the end of the scrolling.
Using that handler you can calculate what div is choosen.

Actual results:

The on-scroll-end handler fires twice.

  1. It fires that the user-interaction has ended.
  2. It fires when the alignment-animation finished.
    It is not possible to differ between those two events.

Expected results:

Only one the handler should fire on the end of the scroll-animation.

The Bugbug bot thinks this bug should belong to the 'Core::Layout: Scrolling and Overflow' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Layout: Scrolling and Overflow
Product: Firefox → Core
Summary: Scroll-snap event fires twice on release → Scroll-snap event fires scroll-end twice on release
Summary: Scroll-snap event fires scroll-end twice on release → Scroll-snap event fires scrollend twice on release

Could you please attach an example HTML page demonstrating the issue?

Flags: needinfo?(github)

I think this may have been fixed in Nightly by https://phabricator.services.mozilla.com/D212344, but a test page will be helpful to confirm this.

I'm going to tentatively close this as fixed by bug 1900241. If you're still experiencing the issue in nightly, please feel free to reopen with a testcase and we'll continue to investigate.

Status: UNCONFIRMED → RESOLVED
Closed: 1 year ago
Duplicate of bug: 1900241
Flags: needinfo?(github)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.