Skip to content

Jumping on borders with reverse option #91

@AsfhtgkDavid

Description

@AsfhtgkDavid

Description

I found a strange bug, Tilt with the reverse parameter. When you hover over the edge of an element, the hitbox changes and you get ugly “jumps.”

Link to Reproduction - Please provide demo in online code editor CodeSandbox or similar. - Issues without a reproduction link are likely to stall.

https://codesandbox.io/p/sandbox/kxmcfn

Steps to reproduce

  1. Move the mouse along the edges.
  2. See inadequate animation.

Expected behavior

I think we need to make the hitbox separate from the card or make the virtual hitbox the same as without reverse.

Code snippets

No response

React Parallax Tilt Version

1.7.315

Browser

Google Chrome 143

Operating System

  • macOS
  • Windows
  • Linux

Additional Information

demo.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions