3.0.2 • Published 3 years ago
delta-force v3.0.2
about
Simplifies mouse tracking keeping in mind that PointerEvent.movementX/Y
might be the more obvious way to go in the near future.
setup
Download from the npm registry:
# Add to package.json
npm install delta-force
usage
Initialize with a DOM selector, then call repeatedly for delta values in the form of { x, y, z, state }
as for example,
import tracker from "delta-force"
const update = tracker(/* Some element, document by default */)
setInterval(() => {
console.table(update())
}, 1000)
3.0.2
3 years ago
3.0.1
3 years ago
2.0.1
4 years ago
3.0.0
4 years ago
2.0.0
4 years ago
1.0.8
5 years ago
1.0.7
5 years ago
1.0.6
5 years ago
1.0.5
7 years ago
1.0.4
7 years ago
1.0.3
7 years ago
1.0.2
8 years ago
1.0.1
8 years ago
1.0.0
8 years ago
0.1.1
8 years ago
0.1.0
8 years ago
0.0.10
8 years ago
0.0.9
8 years ago
0.0.8
8 years ago
0.0.7
8 years ago
0.0.6
8 years ago
0.0.5
8 years ago
0.0.4
8 years ago
0.0.3
8 years ago
0.0.2
8 years ago
0.0.1
8 years ago
0.0.0
8 years ago