Page MenuHomePhabricator

Regression: mouse hover at top of the parameter list causing automatic scrolling (VE template dialog)
Closed, ResolvedPublic3 Estimated Story PointsBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • Open template in VE template dialog
  • When there are unseen parameters at the top of the list (from scrolling down), place mouse cursor at the top of the list

What happens?:
The list starts auto-scrolling upwards until the top parameter has scrolled into view

Scrolling bug.gif (848×946 px, 3 MB)

What should have happened instead?:
No scrolling

Software version (skip for WMF-hosted wikis like Wikipedia):

Event Timeline

Lena_WMDE renamed this task from Regression: mouse at top of the parameter list causing automatic scrolling (VE template dialog) to Regression: mouse hover at top of the parameter list causing automatic scrolling (VE template dialog).Jul 13 2022, 11:32 AM
Lena_WMDE updated the task description. (Show Details)

Change 813638 had a related patch set uploaded (by Awight; author: Awight):

[mediawiki/extensions/VisualEditor@master] Don't always scroll when highlighting

https://gerrit.wikimedia.org/r/813638

This one is suddenly acting better, but I don't understand why. I've played with different window sizes, and the autoscroll on hover will pull a line into view to be fully visible, but doesn't continue forever. I guess we can close until we hear more bug reports?

Change 813638 abandoned by Awight:

[mediawiki/extensions/VisualEditor@master] Don't always scroll when highlighting

Reason:

Seems to not be necessary.

https://gerrit.wikimedia.org/r/813638

This one is suddenly acting better, but I don't understand why. I've played with different window sizes, and the autoscroll on hover will pull a line into view to be fully visible, but doesn't continue forever. I guess we can close until we hear more bug reports?

So strange - when I checked last week it as fixed. Just tested on beta to double check and confirm to close, but the bug is back. Is back for you too @awight ?

Some of us can still reproduce the issue, so leaving it open.

thiemowmde set the point value for this task to 3.
thiemowmde removed a project: Unplanned-Sprint-Work.
thiemowmde subscribed.

Some of us can still reproduce the issue, so leaving it open.

The issue is related to our custom scrolling tweak that makes sure elements are not hidden behind the sticky when scrolled into view. See also T313002: Browser's autoscroll doesn't work well with sticky outline header. We currently have that workaround tweak that takes the height of the header into account and adjusts the scroll into view with a padding of the same size. [1]

Unfortunately this size is hardcoded at the moment because the place where it's used is buried a bit deeper in the dependency chain and we wanted to avoid calculating this height dynamically and passing it on over a lot of classes.

The fixed height we use for the padding is the height with the template title in the sticky header. So for single part transclusions it's a bit too much and you will get that automatic scrolling effect.

Three ways to move forward here ordered by effort:

  • Calculate the height of the sticky dynamically and pass on the size to MWTransclusionOutlineParameterWidget
  • Add a 2nd hard coded size for single part transclusions and switch between these two depending on mode ( also needs to be passed down )
  • Leave it as is

[1] https://gerrit.wikimedia.org/g/mediawiki/extensions/VisualEditor/+/f8fd06dbaf6fca6c0d33473357601f4a11a50d6a/modules/ve-mw/ui/widgets/ve.ui.MWTransclusionOutlineParameterWidget.js#94

Change 819046 had a related patch set uploaded (by WMDE-Fisch; author: WMDE-Fisch):

[mediawiki/extensions/VisualEditor@master] Tweak the hard coded top scroll padding for the parameter list

https://gerrit.wikimedia.org/r/819046

Change 819046 had a related patch set uploaded (by WMDE-Fisch; author: WMDE-Fisch):

[mediawiki/extensions/VisualEditor@master] Tweak the hard coded top scroll padding for the parameter list

https://gerrit.wikimedia.org/r/819046

FYI: That patch is just a minor tweak for the multi part transclusion. Fixing an issues with 1px that still might lead to auto scroll when you move your mouse to that 1px at the top of the parameter list.

Change 819046 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Tweak the hard coded top scroll padding for the parameter list

https://gerrit.wikimedia.org/r/819046

Change 819060 had a related patch set uploaded (by Thiemo Kreuz (WMDE); author: Thiemo Kreuz (WMDE)):

[mediawiki/extensions/VisualEditor@master] Scroll below sticky header only if sticky header is present

https://gerrit.wikimedia.org/r/819060

Change 819060 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Scroll below sticky header only if sticky header is present

https://gerrit.wikimedia.org/r/819060

Change 819507 had a related patch set uploaded (by Thiemo Kreuz (WMDE); author: Thiemo Kreuz (WMDE)):

[mediawiki/extensions/VisualEditor@master] Show "no parameters" message only when there are no parameters

https://gerrit.wikimedia.org/r/819507

Change 819508 had a related patch set uploaded (by Thiemo Kreuz (WMDE); author: Thiemo Kreuz (WMDE)):

[mediawiki/extensions/VisualEditor@master] Tweak the hard coded top scroll padding for the parameter list

https://gerrit.wikimedia.org/r/819508

Change 819516 had a related patch set uploaded (by Thiemo Kreuz (WMDE); author: Thiemo Kreuz (WMDE)):

[mediawiki/extensions/VisualEditor@master] Restore scrolling parameters into view with(out) sticky header

https://gerrit.wikimedia.org/r/819516

Change 819535 had a related patch set uploaded (by WMDE-Fisch; author: Thiemo Kreuz (WMDE)):

[mediawiki/extensions/VisualEditor@wmf/1.39.0-wmf.23] Restore scrolling parameters into view with(out) sticky header

https://gerrit.wikimedia.org/r/819535

Change 819524 had a related patch set uploaded (by Thiemo Kreuz (WMDE); author: Thiemo Kreuz (WMDE)):

[mediawiki/extensions/VisualEditor@master] Tweaks to focus/scrolling code relative to sticky header

https://gerrit.wikimedia.org/r/819524

Change 819516 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Restore scrolling parameters into view with(out) sticky header

https://gerrit.wikimedia.org/r/819516

Change 819535 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@wmf/1.39.0-wmf.23] Restore scrolling parameters into view with(out) sticky header

https://gerrit.wikimedia.org/r/819535

The patches merged should fix the issue for cases with and without the sticky header. We're not introducing a dynamic calculation for now but the main user facing issues should be gone.

Change 819524 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Tweaks to focus/scrolling code relative to sticky header

https://gerrit.wikimedia.org/r/819524

Change 819508 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Tweak the hard coded top scroll padding for the parameter list

https://gerrit.wikimedia.org/r/819508

Change 819507 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Show "no parameters" message only when there are no parameters

https://gerrit.wikimedia.org/r/819507