Input handling library for Zdog.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 25 lines 910 B view raw view rendered
1# Zfetch 2 3*Better input handling for Zdog, the pseudo-3D engine.* 4 5## Status 6 7Currently un-minified and under active development. 8 9## About Zfetch 10 11I'm working on an application built on Zdog and I needed better input handling 12that was aware of Zdog and its quirks. What Zfetch does is allow you to set 13event event handlers for `click` and `pointerdown/move/up` events and have 14those handlers be aware of exactly which Zdog shape the mouse is over. 15 16In the future, I'd like to support setting event handlers on arbitrary Zdog 17objects and have events bubble up the Zdog hierarchy. Currently, all events 18pass through the root SVG or Canvas and must be delegated from there. 19 20Current limitations: 21 - Canvas is not supported, only SVG. (This wouldn't be a large task) 22 23Pull requests and suggestions are welcome! 24 25This is currently being actively developed alongside [Zoodle](https://github.com/different55/zoodle).