Add hysteresis to tooltip position

You may find this update useful: