Fix horizontal scroll change detection