fixed the scroll bug of viewflow and viewpager