amended bug i scroll function for iPads