[BUG #7517] Checked mouse emulation to check for device.touch instead of event.touch