From 0421ec8a66f2784e2cfc069c03fcbc0fb8830285 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?He=CC=84sperus?= Date: Tue, 3 Feb 2026 19:47:10 +0800 Subject: [PATCH] update README --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 2ade05d..e796b58 100644 --- a/README.md +++ b/README.md @@ -93,6 +93,20 @@ This link ships the latest ESM version by default, to access CJS version or earl The link above ships version 1.0.1 in CJS. +Then simply grab the core class and a module: + +```TypeScript +import { Pointeract, Drag } from 'pointeract'; + +new Pointeract({ element: yourElement }, Drag) + .start() + .on('drag', e => console.log(e)); +``` + +Congratulations! You can now press your mouse or finger to the element and move, the console will log events like a waterfall. + +**Read next**: dive into the usage of Pointeract in [Use Pointeract](https://pointeract/basic/use-pointeract). + ## Currently Supported Features - **Click (Double Click, Triple Click, Quadruple Click, Any Click)**