Skip to content

Conversation

@mejo-
Copy link
Member

@mejo- mejo- commented Dec 15, 2025

The mouseover event event bubbles, which means that hovering child elements also triggers it. This can lead to bad performance. Thus it's better to use mouseenter.

See https://developer.mozilla.org/en-US/docs/Web/API/Element/mouseenter_event#usage_notes

🏁 Checklist

  • Code is properly formatted (npm run lint / npm run stylelint / composer run cs:check)
  • Sign-off message is added to all commits

@mejo- mejo- requested a review from silverkszlo December 15, 2025 10:21
@mejo- mejo- self-assigned this Dec 15, 2025
@mejo- mejo- requested a review from max-nextcloud as a code owner December 15, 2025 10:21
@mejo- mejo- added bug Something isn't working 3. to review performance 🚀 labels Dec 15, 2025
@mejo-
Copy link
Member Author

mejo- commented Dec 15, 2025

/backport to stable32

@codecov
Copy link

codecov bot commented Dec 15, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

The mouseover event event bubbles, which means that hovering child
elements also triggers it. This can lead to bad performance. Thus it's
better to use mouseenter.

See https://developer.mozilla.org/en-US/docs/Web/API/Element/mouseenter_event#usage_notes

Signed-off-by: Jonas <[email protected]>
@mejo- mejo- force-pushed the fix/imageview_mouseenter branch from a1de4d0 to 4478c2d Compare December 15, 2025 12:43
Copy link
Collaborator

@silverkszlo silverkszlo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested it in Firefox and Chromium and it seems to work nicely! :)

@mejo- mejo- merged commit adbc3e8 into main Dec 15, 2025
63 of 64 checks passed
@mejo- mejo- deleted the fix/imageview_mouseenter branch December 15, 2025 15:34
@mejo-
Copy link
Member Author

mejo- commented Dec 15, 2025

/backport to stable31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants