Skip to content

isPositionOutside:true due to negative x or y values, when mouse is in container #30

@weiner

Description

@weiner

When react-cursor-position is wrapped in react-slick and in modal container like react-responsive-modal it happens that the position of x or y can get negative even when the mouse is in the container.

To reproduce I created this Codesandbox POC https://codesandbox.io/s/wwwvzv1818

Steps to reproduce:

  1. Visit https://codesandbox.io/s/wwwvzv1818 e.g in Chrome 71
  2. Open the overly
  3. slide the carousel to the left e.g 3 time
  4. move the mouse

Current Result: x or y values go to negative, and isPositionOutside is set to true even when the mouse is in the container.

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