fix button touch begin error
add window support