fixed mouse coordinate offset, added touch events