Skip to content

CosmicDNA/touch-tracker

Repository files navigation

Touch Tracker

Netlify Status GitHub License DeepScan grade

A simple, performant web application for visualizing multi-touch events on a full-screen canvas. This tool is designed to help developers and designers inspect the properties of touch interactions in real-time, including position, size, and rotation.

Features

  • Real-time Visualization: See touch points appear on the screen as you interact with your device.
  • Multi-Touch Support: Tracks and displays multiple simultaneous touch points.
  • Detailed Touch Properties: Visualizes and displays coordinates (clientX, clientY), ellipse radius (radiusX, radiusY), and rotationAngle.
  • Performant Rendering: Uses the HTML <canvas> API and requestAnimationFrame for smooth, jank-free animations that don't trigger unnecessary React re-renders.
  • Modern Tech Stack: Built with React and Vite for a fast and efficient development experience.

Tech Stack

  • Framework: React
  • Build Tool: Vite
  • Linting: ESLint with the neostandard configuration

Getting Started

To run this project locally, follow these steps.

Prerequisites

Make sure you have Node.js installed (v18 or higher is recommended).

Installation

  1. Clone the repository to your local machine:

    git clone https://github.com/CosmicDNA/touch-tracker
    cd touch-tracker
  2. Install the dependencies:

    npm install
  3. Start the development server:

    npm run dev

Open your browser and navigate to the local URL provided by Vite (usually http://localhost:5173). To see the touch visualizations, open the site on a touch-enabled device or use your browser's developer tools to simulate touch events.

Acknowledgements

Based on Patrick Lauke's https://github.com/patrickhlauke/touch

Powered by

React Netlify

About

Tracks touch input radius X, radius Y and rotationAngle. Based on Patrick Lauke's https://github.com/patrickhlauke/touch

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published