Last modified: 2014-06-20 00:40:09 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T68317, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 66317 - Hovercards should always appear adjacent to the linked area (instead of relative to the mouse cursor) to prevent "dead" space between link and hovercard
Hovercards should always appear adjacent to the linked area (instead of relat...
Status: UNCONFIRMED
Product: MediaWiki extensions
Classification: Unclassified
Popups (Other open bugs)
unspecified
All All
: Unprioritized major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-06-07 12:39 UTC by Eduard Braun
Modified: 2014-06-20 00:40 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Screenshots to illustrate the bug (17.80 KB, image/png)
2014-06-07 12:39 UTC, Eduard Braun
Details

Description Eduard Braun 2014-06-07 12:39:13 UTC
Created attachment 15590 [details]
Screenshots to illustrate the bug

Currently hovercards appear relative to the mouse cursor.
That means depending on the initial location of the cursor the hovercard is shown closer or farer away from the link (see first two screenshots in attachement).

In the second case (hovercard shown farer away from the link) this leads to an issue: There is some "dead space" between the linked area of the link and the linked are of the hovercard.

If one moves the mouse (not too fast) from link to hovercard in this case the hovercard dissappears before the cursor actually reaches it.


The easiest possibility to solve this issue would probably be to show hovercards always adjacent to the linked area (e.g. the hovercards tip touching the link)


(Tests above with Firefox 29.0.1 on Windows 7)
Comment 1 Quiddity 2014-06-19 23:56:39 UTC
Hovercards used to work like that, but there were problems when the link spanned multiple lines. (bug 63159)  Hence it was changed to be relative to the mouse cursor.

The easiest way to solve the issue with the hovercard disappearing too quickly, will be to change the on/off timing to 500ms (from 150ms), bug 66301
Comment 2 Eduard Braun 2014-06-20 00:40:09 UTC
Increasing the timing will surely make this issue less probable but it will not really fix it (imagine grandma slowly but steadily moving her finger on her newly purchased laptop trying to reach this exciting hovercard that has just popped up... but sadly never reaching it)

Wouldn't it be possible to combine both approaches:
- get x-coordinate from mouse cursor
- set y-coordinate relative to linked area.

After five minutes of googling I'm pretty sure it should be quite easy to prevent reintroduction of bug 63159 by just properly using the JavaScript function "getClientRects()" [1] to identify the part of the link the mouse is located over and calculate the correct vertical position.

[1] https://developer.mozilla.org/en-US/docs/Web/API/element.getClientRects

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links