Skip to content

Request for drag tolerance #276

Open
@laurenwithcats

Description

@laurenwithcats
  • 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)

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