Page MenuHomePhabricator

TUX does not scroll to last unit after saving second to last unit
Closed, ResolvedPublic1 Estimated Story PointsBUG REPORT

Description

List of steps to reproduce:

  • Open Special:Translate from a given page to translate it. (example)
  • Edit a translation unit and save it (clicking “Publish” button or pressing Ctrl+Shift+S).
  • Note the next unit opens in editor and the browser automatically scrolls in order we can fully see the next unit.
  • Edit the second to last (n-1) unit and save it.

What happens?:
TUX opens the last (n) unit in editor, but the browser does not scroll to it: we have to manually scroll to well see it.

What should have happened instead?:
The browser should automatically scroll to fully see last unit in editor, as it does for other units of the page.

Browser information:
Tested with Firefox 78 and Chromium 90.

Event Timeline

Nikerabbit moved this task from Backlog to tux on the MediaWiki-extensions-Translate board.

Change 904496 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):

[mediawiki/extensions/Translate@master] ext.translate.editor: Simplify logic to scroll to next element

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

abi_ set the point value for this task to 1.Mar 30 2023, 1:37 PM

Change 906536 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):

[mediawiki/extensions/Translate@master] ext.translate.editor: Simplify logic to scroll to next message

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

Change 904496 abandoned by Abijeet Patro:

[mediawiki/extensions/Translate@master] ext.translate.editor: Simplify logic to scroll to next message

Reason:

In favor of I4e201adf80a5bbe5d2e7e811981e985669abb8e1

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

Change 906536 merged by jenkins-bot:

[mediawiki/extensions/Translate@master] ext.translate.editor: Simplify logic to scroll to next message

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

This is done. Tested on translatewiki.net and Meta-Wiki