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

[4.1] Fix panning while mouse is up in Blazor #2505

Merged
merged 3 commits into from Feb 23, 2024

Conversation

pauldendulk
Copy link
Member

@pauldendulk pauldendulk commented Feb 21, 2024

When, while dragging, the mouse goes out of the MapControl area, you lift the mouse button, and hover back over the MapControl again, the map will still be panning. This is because the MouseUp is not detected when the mouse is outside the map. Now we reset the previous position on the MouseOut event.

This type of gesture happens quite a lot when you dragging a long distance.

A better solution would be to use pointer capture, so that you could keep on dragging outside the map, a mouseUp would still be detected when you are out of the map. We have this in other platforms and I like it as a user.

@pauldendulk pauldendulk changed the title Fix MouseOut continues dragging [4.1] Fix MouseOut continues dragging Feb 21, 2024
@pauldendulk pauldendulk merged commit 578ee46 into develop/4.1 Feb 23, 2024
6 checks passed
@pauldendulk pauldendulk deleted the feature/fix-mouseout branch February 23, 2024 12:56
@pauldendulk pauldendulk changed the title [4.1] Fix MouseOut continues dragging [4.1] Fix mouse up not detected when mouse goes out of map while dragging Feb 24, 2024
@pauldendulk pauldendulk changed the title [4.1] Fix mouse up not detected when mouse goes out of map while dragging [4.1] Fix panning while mouse is up in Blazor Feb 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant