Skip to content

Handling continuous scroll key input.#33

Open
unisons wants to merge 2 commits into
yuttie:masterfrom
unisons:handling_continuous_scroll
Open

Handling continuous scroll key input.#33
unisons wants to merge 2 commits into
yuttie:masterfrom
unisons:handling_continuous_scroll

Conversation

@unisons
Copy link
Copy Markdown

@unisons unisons commented Aug 29, 2018

Add impulse checking the current velocity value.
Without this patch, keeping pressing scroll key, it doessn't stop
properly. This patch make to set a upper limit to velocity value.

Add a function for distance instead of impluse. It will help to move a
specific lines. But it will ignore the air_drag value. It is hard to
calculate the impulse value to move a certain distance with air_drag.

unisons and others added 2 commits August 29, 2018 18:56
Add impulse checking the current velocity value.
Without this patch, keeping pressing scroll key, it doessn't stop
properly. This patch make to set a upper limit to velocity value.

Add a function for distance instead of impluse. It will help to move a
specific lines. But it will ignore the air_drag value. It is hard to
calculate the impulse value to move a certain distance with air_drag.
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