Skip to content

Drag end triggers the onClick handler on mobile #79

Description

@alejo4373

This is because the handleClick handler is being passed to the onTouchEnd prop in the file below.

onTouchEnd={handleClick}

This is specially an issue when there's not enough vertical space to fit the full height of the calendar on mobile (because of the mobile browser address bar at the top and navigation bar at the bottom, in this case). The user will try to scroll down to click one of the last dates of the month for example triggering the click event will the CalendarDay that was initially held for the drag up movement

💡 This is only an issue when touchDragEnabled is set to false. I could look more into it and submit a PR with a potential fix, if yo want me to.

RPReplay_Final1629083527.MP4

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