kimlimjustin / xplorer

Xplorer, a customizable, modern file manager
https://xplorer.space/
Apache License 2.0
4.88k stars 336 forks source link

Tab hover effect flickers when hover tab title or close button #252

Closed k00lagin closed 2 years ago

k00lagin commented 2 years ago

Description

Because hover handler function uses e.target element to calculate mouse coordinates it takes tab's child element when they are hovered. So when title or close button are hovered effect coordinates are jumping to the left side of the tab.

Steps To Reproduce

  1. Hover tab somewhere near the close button
  2. Hover close button
  3. Move your cursor back and forth target

Expected behavior

Effect coordinates should be calculated consistently, no matter what part of element is hovered currentTarget

Xplorer Version

v0.3.1

Operating System Version

Windows 11 21H2

Additional Information

No response