fui
This is an experimental library to experiment whether handling of events can neatly be abstracted away from the actual event handling code itself.
Examples
There are examples available both in this repository, and online at jsfiddle:
Example Code
Here is some very early example code (which is actually running):
// only continue if the element matches the selector (uses qwery) // convert to relative coordinates // for each of the targets matched, push a context onto the argument list // handle pointer down events // handle pointer move events // handle pointer up events ;