public void OnDragMove(DragEvent evt) { evt.StopPropagation(); Debug.Log("You are dragging the yellow thing."); // we need to create a new object here otherwise the OnPropertyChanged handler wouldn't fire Value = new CustomInputData() { MyVal = evt.MousePosition.x }; num = evt.MousePosition.x; onValueChanged?.Invoke(Value); onNumChanged?.Invoke(num); }
protected bool Equals(CustomInputData other) { return(MyVal.Equals(other.MyVal)); }