fix closing revealed buttons

close revealed buttons when touch cross the boundary of buttons’
position