Closed Bug 1882226 Opened 9 months ago Closed 8 months ago

Google Docs fonts menu has a huge scroll-position-change (jumping upwards in the font list), if you scroll down and then move cursor around to choose a font

Categories

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

defect

Tracking

()

RESOLVED DUPLICATE of bug 1853079

People

(Reporter: abenson, Unassigned)

Details

Attachments

(1 file)

Observed on macOS

STR:

  • Open a google doc (new or existing)
  • Type some text in the doc, or select existing text
  • Click the fonts menu and then scroll to the bottom of the list
  • Move mouse cursor to make a font selection

At this point, the font list appears to "jump" back to the top, making it impossible for me to select a font lower down on the list. It is also difficult to navigate the flyout menus in the font list because as the mouse cursor traverses over the scrollbar area, the flyout disappears.

Flags: needinfo?(abenson)
Attached video No font scroll

Video from Aaron Benson that shows the issue on macOS. I have been able t reproduce this on Windows.

Moving to Layout for first triage

Component: General → Layout: Scrolling and Overflow
Product: Firefox → Core

It is also difficult to navigate the flyout menus in the font list because as the mouse cursor traverses over the scrollbar area, the flyout disappears.

This part is bug 1836872.

I don't think the "Jump back to the top" part is covered by that bug, though.

I can reproduce the jump - it seems to happen if I move my cursor to/from a font name that triggers a flyout menu.

Have been able to reproduce in FF x124 and Win 11

Here's a performance profile where the "jump" happens: https://share.firefox.dev/3OUHh8w

I haven't been able to reproduce in Chrome or Safari, so this seems to be Firefox-specific. (Minor caveat: I can reproduce a very-small single-menu-item-height "jump" if I hover the very top of the font list, after having scrolled to the end; because, hovering that top list-entry causes the list to scroll to show that entry. That seems to be by-design and much less severe than what's being discussed here.)

In Firefox Nightlies: I can reproduce the large "jump" at least as far back as Nightly 2022-01-01 (v97.0a1), so this is not a recent regression on our side. If this issue only just started happening, then it wasn't due to a change on our side. (Still might be arguably our bug, but a longstanding bug that [maybe] Google Docs just started tripping over in a recent deployment.)

I can reproduce the jump even if I spoof a Chrome UA string, too, so there's no UA-sniffing involved in triggering the bad condition.

Summary: Cannot scroll fonts in Google Docs → Google Docs fonts menu has a huge scroll-position-change (jumping upwards in the font list), if you scroll down and then move cursor around to choose a font

I just did a bit of debugging. I thought this might have been similar or made worse by our recent changes to make Element.focus() center an element. After further investigation, this does not appear to be the case. We do not seem to trigger the scroll do to the logic in ComputeNeedToScroll. The ScrollOperationParams.mTriggeredByScript flag is set to ScrollTriggeredByScript::Yes in recent debugging sessions, which AFAIK indicates there is an explicit scroll operation that is triggering it. This doesn't necessarily mean there is no bug in our code, but I think this indicates this isn't a bug due to our recent changes to Element.focus().

I'll continue to attempt to debug this a bit more.

Whiteboard: [apz-needsdiagnosis]
Flags: needinfo?(abenson)

I think this is a duplicate of Bug 1589505

The severity field is not set for this bug.
:hiro, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(hikezoe.birchill)

I would say this is a duplicate of bug 1836872.

Status: NEW → RESOLVED
Closed: 8 months ago
Duplicate of bug: 1836872
Flags: needinfo?(hikezoe.birchill)
Resolution: --- → DUPLICATE

Wrong bug number. :/

Duplicate of bug: 1853079
No longer duplicate of bug: 1836872
Whiteboard: [apz-needsdiagnosis]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: