Fixed mistake in isEmulatedMouseEvents