Skip to content

mouseover event is used on command log items causing too many renders #17257

@kuceb

Description

@kuceb

we use onMouseOver on each item in the command log to show dom snapshots for commands.

problem:
because mouseover bubbles, the event is triggered multiple times when a user hovers within the command, since inner dom nodes inside the command will bubble their mouseover to the outer dom node.

mouseeventbefore.mp4

solution:
use mouseenter, which doesn't bubble and mimics the behavior of a css :hover psuedo selector

mouseeventafter.mp4

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions