Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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