format
deal with buggy fake mouse events
update demo
Merge pull request #1 from hax/master

Sync from original repo.