Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request for drag tolerance #276

Open
2 of 3 tasks
laurenwithcats opened this issue Feb 15, 2021 · 0 comments
Open
2 of 3 tasks

Request for drag tolerance #276

laurenwithcats opened this issue Feb 15, 2021 · 0 comments

Comments

@laurenwithcats
Copy link

  • I'm submitting a ...

    • bug report
    • feature request
    • support request => Please do not submit support request here, see note at the top of this template.
  • Do you want to request a feature or report a bug?
    Yes to both

  • What is the current behavior?
    Currently, I am using the drag-scroll component to create a carousel of clickable linked elements. However, nearly every click will activate the drag event which often blocks the link-click event. This is because of human slight movement when mouse-down. The movement is picked up by the program even if the human doesnt feel like they have moved.

  • If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
    Create any carousel using links inside the draggable items. Attempt to click.

  • What is the expected behavior?
    Expected behavior would be for the drag-scroll to only activate when actually dragging. Introducing a tolerance variable of a certain number of coordinate distance before starting the scroll would be helpful (default could be 0, but able to be changed- my preference is around 8-12 coordinate distance)

  • What is the motivation / use case for changing the behavior?
    Carousel elements containing links shouldn't have to be clicked multiple times to get through the link.

  • Please tell us about your environment:
    Angular 8.3

    • drag scroll version: 8.0.0
    • Browser: Firefox latest and Chrome latest
  • Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant