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

Bugfix for touch panning in WPF #165

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

Ksero
Copy link

@Ksero Ksero commented Mar 27, 2020

Previously, there was no handler for OnManipulationStarted, so the Core.mouseDown and Core.mouseCurrent were never initialized for the touch manipulation. This resulted in eg. a sudden movement as soon as a user touched a single finger on the GMapControl.

Added a separate touchCurrent variable for keeping track of the accumulated touch pan operation, to prevent problems if some event changes the mouseCurrent during the touch manipulation operation.

WPF also has separate fields for the accumulated translation, which could simplify the code quite a bit. However, that would mean a breaking change in the interface of SingleTouchPanMap, and I'm not sure how you feel about that. Would you prefer that version?

…pulationStarted, so the Core.mouseDown and Core.mouseCurrent were never initialized for the touch manipulation. This resulted in eg. a sudden movement as soon as a user touched a single finger on the GMapControl.

Added a separate touchCurrent variable for keeping track of the accumulated touch pan operation.
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.

1 participant