Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove all obsolete members from Input namespace #8577

Merged
merged 7 commits into from
Jul 23, 2022

Conversation

maxkatz6
Copy link
Member

Breaking changes

Previously obsolete members were removed.

Fixed issues

Part of #3538

@maxkatz6 maxkatz6 requested review from kekekeks and a team July 23, 2022 05:23
@@ -302,9 +304,6 @@ public ILayoutManager LayoutManager
set { SetValue(PointerOverElementProperty, value); }
}

/// <inheritdoc/>
IMouseDevice? IInputRoot.MouseDevice => PlatformImpl?.MouseDevice;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MouseDevice wasn't obsolete here, but why would we keep it public?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its public members were removed, and it doesn't work with other input types.

positionerParameters.Offset = offset;
positionerParameters.ConstraintAdjustment = constraintAdjustment;
if (placement == PlacementMode.Pointer)
{
positionerParameters.AnchorRectangle = new Rect(pointer, new Size(1, 1));
// We need a better way for tracking the last pointer position
var position = topLevel.PointToClient(topLevel.LastPointerPosition ?? default);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I couldn't find a better idea, except keeping old property but internal.
I don't think we can really subscribe on popup's target' root pointer movements, as there might not be any movements between assigning the target and opening the popup.

@avaloniaui-team
Copy link
Contributor

You can test this PR using the following package version. 0.10.999-cibuild0022387-beta. (feed url: https://nuget.avaloniaui.net/repository/avalonia-all/index.json) [PRBUILDID]

@maxkatz6 maxkatz6 merged commit d2a67d1 into master Jul 23, 2022
@maxkatz6 maxkatz6 deleted the cleanup-pointer-members branch July 23, 2022 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants