Fix scrollbar detection bug in iPad Safari