FF150 Relnote: VisualViewport scrollend event#44292
Open
hamishwillee wants to merge 1 commit into
Open
Conversation
hamishwillee
commented
May 29, 2026
|
|
||
| {{APIRef("CSSOM view API")}} | ||
|
|
||
| The **`VisualViewport`** interface of the [CSSOM view API](/en-US/docs/Web/API/CSSOM_view_API) represents the visual viewport for a given window. For a page containing iframes, each iframe, as well as the containing page, will have a unique window object. Each window on a page will have a unique `VisualViewport` representing the properties associated with that window. |
Collaborator
Author
There was a problem hiding this comment.
FYI this is a template-only change to push some of the info below the fold into a Description section. No content changes.
Contributor
|
Preview URLs (2 pages) External URLs (1)URL:
|
8 tasks
chrisdavidmills
approved these changes
May 29, 2026
Contributor
chrisdavidmills
left a comment
There was a problem hiding this comment.
@hamishwillee, again, just one small suggestion for you to consider before merging ;-)
| In other words, you can't use this method to create a {{domxref("Sanitizer")}} that will replace the `<html>` element with its inner content. ([Firefox bug 2022176](https://bugzil.la/2022176)). | ||
|
|
||
| - The [`scrollend` event](/en-US/docs/Web/API/VisualViewport/scrollend_event) is now supported on {{domxref("VisualViewport")}}, allowing elements to be updated when a scrolling action is completed. | ||
| This might be used, for example, to adjust the position of fixed UI elements once a user finishes panning around a pinch-zoomed screen. |
Contributor
There was a problem hiding this comment.
Suggested change
| This might be used, for example, to adjust the position of fixed UI elements once a user finishes panning around a pinch-zoomed screen. | |
| This might be used, for example, to unhide or otherwise adjust the position of fixed UI elements once a user finishes panning around a pinch-zoomed screen. |
Maybe? I can imagine that you'd hide UI elements while scrolling around a map, say, and then use this to unhide them when the scrolling operation has finished.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
FF150 added support for the
scrollendevent in https://bugzilla.mozilla.org/show_bug.cgi?id=1801658This adds a release note.
Related docs work can be tracked in #43968