Page MenuHomePhabricator

ContentTranslation scrolls the page after each key press
Closed, ResolvedPublic

Description

As a translator, I would like to type the translated content without having to scroll the page to see where is the cursor. However, during the translation of the article Web of trust from English to Portuguese, this scrolling happend a lot (say, after any key press which added or removed content). This was annoying and counterproductive.

See the attached screencast:

Event Timeline

He7d3r renamed this task from ContentTranslation scrols the page after each key press to ContentTranslation scrolls the page after each key press.Feb 21 2020, 6:59 PM
He7d3r added a project: ContentTranslation.

The behavior is also present when translating other articles (e.g. Riemann hypothesis, Universal algebra).

Steps to reproduce

  1. Start a new translation using ContentTranslation tool.
  1. Start translating with first paragraph.
  1. Click on second or third paragraph. Article will focus back to first paragraph.

Logs

  1. T262172 has video of this behavior.
  1. No obvious console errors were seen during this scroll up issue.

Examples

It is seen commonly with article that has Infobox template at the start of the article.

Another example for testing: https://es.wikipedia.org/w/index.php?title=Especial:Traducci%C3%B3n_de_contenidos&page=%E0%AA%A7%E0%AB%8B%E0%AA%B3%E0%AB%80%E0%AA%A7%E0%AA%9C%E0%AA%BE+%E0%AA%A1%E0%AB%87%E0%AA%AE&from=gu&to=es&targettitle=&campaign=interlanguagelink

I got the same problem when translating Pratt & Whitney R-1340 Wasp. I got several console logs error (which attached to this comment as .png file); it looks like a issue about code error rather than a problem about browser.

console log.PNG (416×661 px, 42 KB)
I'd be happy to see it's solved, because it's so annoying and I cannot translate.

Note: And also, when trying to save, I additionally got this console error:

console error.PNG (413×692 px, 38 KB)

Steps to reproduce

  1. Start a new translation using ContentTranslation tool.
  1. Start translating with first paragraph.
  1. Click on second or third paragraph. Article will focus back to first paragraph.

Logs

  1. T262172 has video of this behavior.
  1. No obvious console errors were seen during this scroll up issue.

Examples

It is seen commonly with article that has Infobox template at the start of the article.

Another example for testing: https://es.wikipedia.org/w/index.php?title=Especial:Traducci%C3%B3n_de_contenidos&page=%E0%AA%A7%E0%AB%8B%E0%AA%B3%E0%AB%80%E0%AA%A7%E0%AA%9C%E0%AA%BE+%E0%AA%A1%E0%AB%87%E0%AA%AE&from=gu&to=es&targettitle=&campaign=interlanguagelink

For info - I get this problem translating an article without an infobox.

Change 670048 had a related patch set uploaded (by Santhosh; owner: Santhosh):
[mediawiki/extensions/ContentTranslation@master] CX2: Restore scroll positions on machine translations

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

Change 670048 merged by jenkins-bot:
[mediawiki/extensions/ContentTranslation@master] CX2: Restore scroll positions on machine translations

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

I've just seen it happening again to two people in Chrome 89 on Windows and Mac in translating the articles Elaine de Kooning and Lorraine O'Grady from English to Hebrew.

I've just seen it happening again to two people in Chrome 89 on Windows and Mac in translating the articles Elaine de Kooning and Lorraine O'Grady from English to Hebrew.

Both people tried installing Firefox, and it stopped this unwanted scrolling.

Jpita added a subscriber: Jpita.

I confirm what Amir reported, works OK on pt wiki but still fails on hebrew wiki

Pginer-WMF added a subscriber: Pginer-WMF.

Fixes for T285860 seem to have solved the scroll jumps. We got confirmation form one user, but feel free to reopen if the issue persists in some other cases.