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

feat: add dragThreshold option #870

Merged
merged 1 commit into from
Aug 26, 2024
Merged

Conversation

malangfox
Copy link
Contributor

Details

Sometimes we need to set the minimum pixel range to recognize the user's input.

We needed options for implementing cases where flicking doesn't move for very small movements.

To implement this now, we need to access flicking.control._controller._panInput.options.threshold directly like in the demo.

Therefore, we added the dragThreshold option so that we can set an option for the PanInput instance in Flicking.

@coveralls
Copy link

Coverage Status

coverage: 82.855% (+0.06%) from 82.791%
when pulling 25b1b2d on malangfox:feat/drag-threshold
into 778d573 on naver:master.

@daybrush daybrush merged commit c83fc5e into naver:master Aug 26, 2024
4 checks passed
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.

3 participants