Skip to content

simulate hover event #2

@Yuyz0112

Description

@Yuyz0112

hover is a native DOM event which we cannot trigger by JS. So some styles relative to the :hover selector will be broken when replay.

We can use an alternative approach to simulate the hover event with the following steps:

  1. record mousemove event target node id in the mousemove observer.
  2. add an extra \:hover class name selector to the CSS rules which contains the :hover selector during rebuilding.
  3. toggle \:hover class name when applying mousemove event.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions