Fix #452

Makes the touch events translator more robust, since we fire fake touch events using MouseEvents in some of the UI tests.