{"repo":"any86/any-touch","free":true,"listed":false,"github":"https://github.com/any86/any-touch","clone":"git clone https://github.com/any86/any-touch.git","description":":wave: Touch gesture library, 1kb~5kb, compatible with PC / mobile","language":"TypeScript","stars":1246,"topics":["gesture","finger","touch","mouse","vue","drag","pinch","rotate","tap","swipe"],"license":"MIT","category":"ui-components","readme_excerpt":"any-touch [![NPM Version][npm-image]][npm-url] [![NPM Downloads][downloads-image]][downloads-url] [![size-image]][size-url] [size-image]: https://badgen.net/bundlephobia/minzip/@any-touch/core [size-url]: https://bundlephobia.com/result?p=@any-touch/core [npm-image]: https://badgen.net/npm/v/any-touch [npm-url]: https://npmjs.org/package/any-touch [downloads-image]: https://badgen.net/npm/dt/any-touch [downloads-url]: https://npmjs.org/package/any-touch - Support PC/Mobile/WeChat applet. - 6 gesture recognizers are loaded by default, can also be loaded on demand, core 1kb , full 5kb . - No dependencies, not limited to Vue / React / Angular etc... Language 中文 English Demo QR Code Simple any-scroll Install CDN Directory ⚡ Get Started - 👋 Gesture - 🍭 Event - 🔹 Typescript 🌱 Vue & Directives 🍀 WeChat applet 📐 Load on demand 🌈 Advanced - prevenDefault - doubletap :bulb: API 🍳 Q & A Get Started The pan here is called gesture event. e is the event object, which contains data such as \"position/speed/zoom/angle\", 👋Gesture Each state of the gesture corresponds to an event. Gesture Name Describe pan pan Triggered continuously while dragging panstart drag to start panmove dragging panstart Drag to stop (off screen) panup / pandown / panright / panleft Drag events in different directions press press Press press Press release (off screen) tap tap Click, No problem with 300ms delay swipe swipe Swipe swipeup / swipedown / swiperight / swipeleft Swipe in different directions pinch pin","default_branch":null,"files":null,"tree":[],"storefront":"/r/any86","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/any86/any-touch/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}