Page MenuHomePhabricator

Fix unexpected page scroll when logged-out warning message opens on mobile
Closed, ResolvedPublic2 Estimated Story Points

Description

This task is a follow-up to T407497, which introduced a refreshed logged-out warning message on mobile. During manual testing of the refreshed message, an unexpected page scroll was observed when the message is open. The suspected cause is that the message does not account for the editor toolbar height when the message renders.

Event Timeline

KStoller-WMF moved this task from Product Backlog to Needs Refinement on the Growth-Team board.
KStoller-WMF set the point value for this task to 2.Mon, Jun 29, 3:36 PM
KStoller-WMF moved this task from Needs Estimation to Up next Sprint on the Growth-Team board.

With @AAlhazwani-WMF's help, I was able to reproduce this locally (with both an Android and iOS device). The problem is not visible in a simulator.

Change #1308684 had a related patch set uploaded (by Urbanecm; author: Urbanecm):

[mediawiki/extensions/MobileFrontend@master] editor: Use dvh for anonwarning height to avoid page scroll

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

Test wiki created on Patch demo by Martin Urbanec (WMF) using patch(es) linked to this task:
https://dd4753c226.catalyst.wmcloud.org/w/

Change #1308684 merged by jenkins-bot:

[mediawiki/extensions/MobileFrontend@master] editor: Fix mobile anonwarning height and vertical centering

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

QA note: Please make sure to check this on a physical device (preferably, both iOS and Android).

@Etonkovidova this could use a QS Lead's input given the testing nuance required.

Checked https://dd4753c226.catalyst.wmcloud.org/w/ and enwiki beta (the patch is merged) on two real devices I have - iPhone 11 and Android Samsung Galaxy S8. Also checked on "real devices" in Browserstack.

The task, in my opinion, describes two types of scrolling issues

(1) ✅ DONE

an unexpected page scroll was observed when the message is open.

Steps:

  • on an article page, anon user clicks on the pencil button
  • the message is scrolling vertically when loads (it scrolls first up and then down).

That issue resolved - see the table below when it was checked.

(2) The vertical scroll of the whole page when the page of message is loaded - the screen recording shows that issue

The overall vertical scroll is still present, but the issue is not specific to the warning message display. Many other pages - e.g. Impact module, Mentorship module would have unnecessary scrolling.

devicebrowser
iPhone 11 real deviceSafari
iPhone 11 real deviceChrome
BrowserStack (emulator) iPhone 14Safari
BrowserStack (emulator) iPhone 14Chrome
BrowserStack (emulator) iPhone 15Safari
BrowserStack (emulator) iPhone 14Chrome
Samsung Galaxy S8 real deviceChrome
Samsung Galaxy S8 real deviceFirefox