make this work with iOS

Little Change to work on iPhone and iPad without double tap.