glomotion / gesture-helper Goto Github PK
View Code? Open in Web Editor NEWa *tiny* touch & mouse library to help make tracking interactions more simple.
License: MIT License
a *tiny* touch & mouse library to help make tracking interactions more simple.
License: MIT License
eg something like:
control.on('tap', _listener)
control.off('tap', _listener)
Use of EE's are quite contentious. Everyone has their own favourite.
This lib should be un-opinionated about it's use of EventEmitter.
For some reason Samsung's (annoying) browser does a pull to refresh on swiping down. Chrome does not.
To make it stop I would usually use preventDefault (with passive: false), but it's not clear to me why Chrome and Safari seem to work fine. It's only the Samsung browser that appears to be a problem.
After some thought, I don't believe that this lib needs to take on a class-based structure.
Would probably better be done by using factories.
gesture-helper is a bit boring
This really should get done sometime soon.
Eg, something like GSAP draggable, or popmotion decay - without the bloat.
The current default behaviour is PanSwipe - but I also need to add other recognisers.
eg.
import { Tap } from 'gesture-helper' // or
import Tap from 'gesture-helper/tap'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.