# touch-libs **Repository Path**: yangyuji/touch-libs ## Basic Information - **Project Name**: touch-libs - **Description**: some light & tiny touch scripts - **Primary Language**: JavaScript - **License**: MIT - **Default Branch**: master - **Homepage**: https://yangyuji.github.io/h5-factory/ - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-09-02 - **Last Updated**: 2022-09-02 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # touch-libs some light & tiny touch scripts with no dependancy ## use like this: ```javascript var myTouch = new touch('.page'); myTouch.on('start', function (e) { console.log('start', e); }); myTouch.on('touch-move', function (distX, distY) { console.log(distX, distY); }); myTouch.on('throttle-move', function (e) { console.log('throttle-move', e); }); myTouch.on('tap', function (e) { console.log('tap', e); }); myTouch.on('swipe', function () { console.log('swipe'); }); myTouch.on('swipe-left', function () { console.log('swipeLeft'); }); myTouch.on('swipe-right', function () { console.log('swipeRight'); }); ``` ## preview > * page link [click here](https://yangyuji.github.io/touch-libs/demo.html) > * ![qrcode](https://github.com/yangyuji/touch-libs/blob/master/qrcode.png)