Skip to content

Commit 4478c2d

Browse files
committed
fix(ImageView): Use mouseenter instead of mouseover
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 <jonas@freesources.org>
1 parent 2f13230 commit 4478c2d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/nodes/ImageView.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
v-if="canDisplayImage"
1717
v-click-outside="() => (showIcons = false)"
1818
class="image__view"
19-
@mouseover="showIcons = true"
19+
@mouseenter="showIcons = true"
2020
@mouseleave="showIcons = false">
2121
<transition name="fade">
2222
<template v-if="!failed">

0 commit comments

Comments
 (0)