-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Conversation
@@ -302,9 +304,6 @@ public ILayoutManager LayoutManager | |||
set { SetValue(PointerOverElementProperty, value); } | |||
} | |||
|
|||
/// <inheritdoc/> | |||
IMouseDevice? IInputRoot.MouseDevice => PlatformImpl?.MouseDevice; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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.
You can test this PR using the following package version. |
Breaking changes
Previously obsolete members were removed.
Fixed issues
Part of #3538