[DF-3198] - fixed "cursor outside of the control" determination logic in UIEditor.