Open
Bug 1814876
Opened 3 years ago
Updated 3 years ago
overlay scrollbar interferes with mouseenter, mouseleave and mousemove
Categories
(Core :: DOM: Events, defect)
Core
DOM: Events
Tracking
()
NEW
| Tracking | Status | |
|---|---|---|
| firefox111 | --- | affected |
People
(Reporter: henry-x, Unassigned)
Details
Steps to reproduce
Tested with GTK and left-to-right direction:
- Uncheck "Always show scrollbars" in General preferences (widget.gtk.overlay-scrollbars.enabled).
- Open "about:blank" with HTML below (an
#outerelement withoverflow: autoand an overflowing#innerchild). - Add event listeners to
#innerfor "mouseeneter" and "mouseleave" that print to the console. - Add event listeners to the window for "mousemove" that prints the event target.
- Move mouse from outside the scroll area on the right hand side of
#outerto the inside.
<div id="outer" style="overflow: auto; height: 400px; width: 400px;">
<div id="inner" style="background: pink; height: 1000px; width: 1000px;">
</div>
</div>
Result
- When the mouse is at the edge of
#outer, we get "mouseenter" on#innerand the target of "mousemove" is#inner. Then we immediately get "mouseleave" on#inner. - Whilst the mouse is travelling over the now-visible overlay scrollbar, we get no "mouseenter" or "mousemove", and the target of "mousemove" is
#outer. - At the inner-edge of the scrollbar we get "mouseenter" on
#inneragain and the target of "mousemove" switches to#inner.
Expect
"mouseenter" should only fire once, "mouseleave" should never fire, and the "mousemove" target should only switch once. Similar to when using non-overlay scrollbars.
Basically, it seems like step 1 is the bug. But I think having "mouseenter" fire when over the scrollbar would also make sense since it is an overlay scrollbar.
NOTE: when leaving the area, we only get "mouseleave" once at the scrollbar edge, and the "mousemove" target only switches once.
| Reporter | ||
Updated•3 years ago
|
Summary: overlay scrollbar interferes with mouseeneter, mouseleave and mousemove → overlay scrollbar interferes with mouseenter, mouseleave and mousemove
Updated•3 years ago
|
Severity: -- → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•