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.
- 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), androtationAngle. - Performant Rendering: Uses the HTML
<canvas>API andrequestAnimationFramefor 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.
- Framework: React
- Build Tool: Vite
- Linting: ESLint with the neostandard configuration
To run this project locally, follow these steps.
Make sure you have Node.js installed (v18 or higher is recommended).
-
Clone the repository to your local machine:
git clone https://github.com/CosmicDNA/touch-tracker cd touch-tracker -
Install the dependencies:
npm install
-
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.
Based on Patrick Lauke's https://github.com/patrickhlauke/touch