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

Relative position triggers drag under wrong circumstances #499

Open
VacuumBreather opened this issue Jul 4, 2024 · 0 comments
Open

Relative position triggers drag under wrong circumstances #499

VacuumBreather opened this issue Jul 4, 2024 · 0 comments
Labels

Comments

@VacuumBreather
Copy link

Describe the bug
The library uses a relative mouse position to determine whether a drag operation has started. Unfortunately this position is relative to a UI Element, not the MainWindow. This has the result that if a "ScrollIntoView" operation is triggered by a click, the drag operation is started, despite the user not having moved the mouse. Instead the element that was clicked on has moved, therefore changig the relative position.

To Reproduce
Steps to reproduce the behavior:

  1. Create a ListBox with large enough item container styles.
  2. Scroll so one element is only half in-view.
  3. Click on the element and hold the mouse button down.
  4. Observe that the element gets scrolled fully into view, which triggers the drag operation

Expected behavior
Drag should only happen when the mouse is moved, not when an element is moved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant