
Native touchscreen and stylus integration for Compose apps: smooth 1:1 panning, inertial fling scrolling, tap-to-click synthesis, modal priority hit-testing, and layered touch modifiers.
This repository contains implementations designed to add native Windows touchscreen and stylus support (smooth 1:1 panning, inertial flinging, click synthesis, and modal priority hit-testing) to Jetpack/JetBrains Compose for Desktop applications.
The repository is divided into two separate implementations:
WndProc subclassing using JNA on the top-level
window and child canvas HWNDs.Modifier.touchScrim and Modifier.touchScrollable configuration
(ensuring foreground modal dialogs receive touch inputs correctly while
blocking underlying scroll lists).To explore or run the active touch implementation:
./Antigravity directory../gradlew :touch-demo:runThis repository contains implementations designed to add native Windows touchscreen and stylus support (smooth 1:1 panning, inertial flinging, click synthesis, and modal priority hit-testing) to Jetpack/JetBrains Compose for Desktop applications.
The repository is divided into two separate implementations:
WndProc subclassing using JNA on the top-level
window and child canvas HWNDs.Modifier.touchScrim and Modifier.touchScrollable configuration
(ensuring foreground modal dialogs receive touch inputs correctly while
blocking underlying scroll lists).To explore or run the active touch implementation:
./Antigravity directory../gradlew :touch-demo:run