Page MenuHomePhabricator

Page preview pokey not positioned correctly when moving cursor quickly across a link
Closed, ResolvedPublic

Description

If I approach a link from the left at a steady pace, the popup anchor points to where my mouse was, not is when the popup appears, even if that position is not within the bounding box of the link:

image.png (458×455 px, 160 KB)

Event Timeline

pmiazga added subscribers: ovasileva, pmiazga.

/cc @ovasileva looks like something we should check sooner than later

One option would be to bind a mousemove listener on mouseenter (and unbind on mouseleave/show popup), and use that to update the anchor position. The position should only 'lock' when the show animation starts.

ovasileva lowered the priority of this task from High to Medium.
Jdlrobson added subscribers: Nirzar, Jdlrobson.

slidingpopup.gif (597×796 px, 384 KB)

When I do this the pointer points to the left corner of the link. I haven't been able to replicate it so that the pointer points outside the link.

Options here would be:

  1. make the sure the mouse is at standstill when showing the popup
  2. move the popup with the mouse (potentially tricky due to the different rendering rules we have)
  3. do nothing

Note #1 may help another problem I've noticed - that highlighting text triggers

highlightingpopup.gif (597×796 px, 1 MB)

@Nirzar need some guidance here.

alexhollender_WMF renamed this task from Popup anchor not positioned correctly to Page preview pokey not positioned correctly when moving cursor quickly across a link.Apr 3 2019, 9:03 PM

This may be improved or fixed by WMDE's work for T215194.

Is this fixed?
@alexhollender we are focusing on page previews technical/design debt soon. Please consider if this should be a subtask of T284095.

Is this fixed?
@alexhollender we are focusing on page previews technical/design debt soon. Please consider if this should be a subtask of T284095.

@ovasileva do we have documentation of the proper look and behavior for page previews? They pre-date me so for QA purposes etc. it can be a bit difficult for me to figure out how they're supposed to look. It seems like it might be valuable. If we don't have documentation it'd probably be worth my time to create?

LGoto lowered the priority of this task from Medium to Low.Sep 21 2021, 8:16 PM
LGoto edited projects, added Web-Team-Backlog; removed Web-Team-Backlog (Tracking).

I can no longer reproduce this. Feel free to mark as resolved.

Jdlrobson claimed this task.