Fix boundaries in which tooltip can be dragged