Page MenuHomePhabricator

VisualEditor: Cursoring off focusable nodes scrolls viewport to the top of the document
Closed, ResolvedPublic

Description

Steps:

  1. Open http://en.wikipedia.beta.wmflabs.org/wiki/7thfeb?veaction=edit
  2. Scroll to bottom
  3. Select the gallery
  4. Cursor right
  5. Press a letter.

Expected outcome: Cursor ends up in slug after the gallery, with an 'a' in it; focus stays.

Actual outcome: Focus moves to the top of the document, then restores when 'a' is typed.


Version: unspecified
Severity: normal
URL: http://en.wikipedia.beta.wmflabs.org/wiki/7thfeb?veaction=edit
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=68708

Details

Reference
bz68589

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 3:35 AM
bzimport set Reference to bz68589.

From other reports it sounds like this may be happening for all focusable nodes, not just galleries.

Change 151400 had a related patch set uploaded by Esanders:
Set selection before focusing document

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

Change 151400 merged by jenkins-bot:
Set selection before focusing document

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