Fix scroll end detection on mobile