Skip to content

[Feature] useTouch #54

Description

@simmo

Use an effect to capture touch events.

Suggested API:
useTouch(ref: HTMLElement = document.body)

Function should return;

  • position
  • distance delta (start/move - end)
  • velocity (distance/time)
  • isTouching Boolean
  • touches count
  • support multiple touches for all of the above

Activity

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions