reset offset when clicking a tree node