Skip to content

Conversation

@jtalz
Copy link
Contributor

@jtalz jtalz commented Jan 24, 2021

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

Copy link
Member

@jgonet jgonet left a 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.
Copy link
Member

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.
Copy link
Member

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".

Copy link
Contributor Author

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

@jgonet jgonet changed the title adjusted handler-tapdocs for readability Improve wording and add defaults to TapHandler docs Feb 1, 2021
@jtalz
Copy link
Contributor Author

jtalz commented Feb 1, 2021

hey sorry, moved this to pull#1325

@jgonet
Copy link
Member

jgonet commented Feb 1, 2021

No worries, we can change merge destination and merge it to this one.

@jgonet
Copy link
Member

jgonet commented Feb 1, 2021

Seems like github isn't picking up the fork, let's close this one then.

@jgonet jgonet closed this Feb 1, 2021
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