IN PROGRESS. I fixed some bugs relating to mouse/touch events.