-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Improve wording and add defaults to TapHandler docs #1319
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
Conversation
jgonet
left a comment
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.
LGTM, left minor comments.
| ### `maxDelayMs` | ||
|
|
||
| Time expressed in milliseconds which could pass before next tap if many taps are required. Default is 300ms. | ||
| Maximum time, expressed in milliseconds, that can pass before the next tap--if many taps are required. The default value is 500. |
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.
Please use "—" instead of "--".
| ### `absoluteY` | ||
|
|
||
| Y coordinate of the current position of the pointer (finger or a leading pointer when there are multiple fingers placed) relative to the root view. The value is expressed in point units. It is recommended to use it instead of [`y`](#y) in cases when the original view can be transformed as an effect of the gesture. | ||
| Y coordinate, expressed in points, of the current position of the pointer (finger or a leading pointer when there are multiple fingers placed) relative to the root view. It is recommended to use this instead of [`y`](#y) in cases when the view attached to the handler can be transformed as an effect of the gesture. |
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'm not sure about "this". I'd leave the original "it" or change it to the "absoluteY".
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 agree, I think "absoluteY" is the best approach
|
hey sorry, moved this to pull#1325 |
|
No worries, we can change merge destination and merge it to this one. |
|
Seems like github isn't picking up the fork, let's close this one then. |
changed default value mentioning to - "The default value is" in order to match the react natives docs
edited for more consistency in explanations
please review the default values because I'm not entirely sure... the information I got was from the android directory - android/lib/src/main/java/com/swmansion/gesturehandler/TapGestureHandler.java