polish toTopBtn logic

Signed-off-by: miaojian <kitemao@gmail.com>