correct left/right movement of the tooltip