fixed bug where first click is not registered in iOS