Fix onFling

Summary: Fixed onFling behaviour by returning correct maxX value.