Dragging content removes element hover state on Linux
Categories
(Core :: Widget: Gtk, defect)
Tracking
()
People
(Reporter: jastekken, Assigned: emilio)
References
Details
Attachments
(1 file)
STR:
- Go to https://yari-demos.prod.mdn.mozit.cloud/en-US/docs/Web/CSS/:hover/_sample_.basic_example.html
- Move cursor over the light-blue box containing a link
- The box becomes orange because it has
:hoverstyling - Start dragging the link
Expected:
The box stays orange for as long as the link is being dragged regardless of where the cursor is
Actual:
The box loses its :hover styling immediately when the dragging starts.
I was able to use mozregressions to trace the problem to bug 1798131
It seems that bug 1798131 changed the behavior on Linux such that starting a drag-sessions always removes hover-state from elements. On Windows, and on Linux before bug 1798131 the behavior is such that the hover state stays "locked" for as long as a drag-session is in progress.
This could potentially make so UI widgets unusable, for example if there is some panel-like list which is shown only when hovering over a trigger and there are items inside the panel which can be re-ordered by dragging them.
| Reporter | ||
Comment 1•3 years ago
|
||
For what it's worth, I've found that toggling widget.gtk.ignore-bogus-leave-notify to 1 solves this issue - however I cannot say if doing that causes some other problems, but nothing immediately obvious at least.
From about:support:
Window Protocol: wayland
Desktop Environment: gnome
| Assignee | ||
Comment 2•3 years ago
|
||
FWIW I can't reproduce the same issue on Plasma Wayland (but I can on GNOME)...
| Assignee | ||
Comment 3•3 years ago
|
||
An alternative for this could be to just ignore leave-notify during a
drag, but that seemed a bit more hackish.
Updated•3 years ago
|
Comment 5•3 years ago
|
||
| bugherder | ||
Comment 6•3 years ago
|
||
Backed out as requested by dev for causing Bug 1827446
Backout link
| Assignee | ||
Updated•3 years ago
|
Comment 7•3 years ago
|
||
| backout bugherder uplift | ||
Backed out changeset 8e7588542175 (Bug 1818517) for causing Bug 1827446
https://hg.mozilla.org/releases/mozilla-beta/rev/745a75b1da94
Updated•3 years ago
|
Updated•3 years ago
|
| Assignee | ||
Comment 8•3 years ago
|
||
What's the ni? above about?
Comment 9•3 years ago
|
||
(In reply to Emilio Cobos Álvarez (:emilio) from comment #8)
What's the ni? above about?
The following is the comment (similar to https://bugzilla.mozilla.org/show_bug.cgi?id=1828020#c2 -- I will follow up on why it is not posted in the case of this bug):
There is an r+ patch which didn't land and no activity in this bug for 2 weeks.
:emilio, could you have a look please?
If you still have some work to do, you can add an action "Plan Changes" in Phabricator.
Description
•