Page MenuHomePhabricator

In VisualEditor clicking white space to the right of the end of a paragraph does not place cursor correctly
Closed, ResolvedPublic

Description

In VisualEditor, clicking the white space to the right of the end of a paragraph used to move the cursor to the end of the sentence, viz. after the citation, however it no longer does but rather places the cursor at the start of the last line of the paragraph. This seems to only occur if the sentence ends in a citation.

Steps to reproduce:

  1. Using Google Chrome (Version 88.0.4324.96), go to https://en.wikipedia.org/wiki/Trump-Raffensperger_phone_call
  2. Select Edit
  3. Attempt to click in the white space to the right of the end of the first paragraph in the lede that ends with "Trump's call with Raffensperger was first reported by The Washington Post and other media outlets the day after it took place.[2][3][4]" (or any other paragraph that ends with a citation).

Actual result:

  • Cursor moves to the start of the last line of the paragraph

Expected result:

  • Cursor moves to the end of the sentence after "[4]".

Diagram:

Screenshot 2021-02-15 at 20.31.32.png (525×1 px, 275 KB)

A - White area where mouse is single-clicked.
B - Where cursor is expected to be placed after "[4]"
C - Where cursor is actually placed

Event Timeline

ppelberg moved this task from To Triage to Triaged on the VisualEditor board.
ppelberg moved this task from Incoming to Upcoming on the Editing-team (Kanban Board) board.
ppelberg added subscribers: matmarex, ppelberg.

Per @matmarex, this ticket may be related to T275467.

I can't reproduce this. @Waddie96 could you confirm if this is still happening?

We've worked on some similar issues recently (e.g. T274068), maybe one of those fixes accidentally fixed this too.