Skip to content

issue #241 - reseting values in Tap on Android#247

Merged
kmagiera merged 2 commits intomasterfrom
issue-241
Jul 11, 2018
Merged

issue #241 - reseting values in Tap on Android#247
kmagiera merged 2 commits intomasterfrom
issue-241

Conversation

@osdnk
Copy link
Copy Markdown
Contributor

@osdnk osdnk commented Jul 10, 2018

Motivation

This PR is related with issue #241. Tap handler wasn't woking properly with condition maxDeltaX and maxDeltaY

Repro

If you wish to repro this this issue, please use code from issue in Example App

Changes

onHandle method in TapGestureHandler was not reseting values mLastX and mLastY at the beginning of a gesture. It implies that the condition shouldFail() was not working properly which was clearly illustrated with maxDeltaX: 0 and maxDeltaY: 0 in given issue. Indeed mLastX and mLastY were representing values from previous gesture.
Now reseting was added and moved before shouldFail() condition.
However, it's difficult to meet condition given in the issue(maxDeltaX: 0 and maxDeltaY: 0) it's possibile with emulated device

@osdnk osdnk requested a review from kmagiera July 10, 2018 10:28
@kmagiera kmagiera merged commit bf62849 into master Jul 11, 2018
@kmagiera kmagiera deleted the issue-241 branch July 11, 2018 08:40
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.

2 participants