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

add 'onDragEnd' listeners for Hammer Minecraft movement #18453

Merged
merged 1 commit into from
Oct 19, 2017

Conversation

Hamms
Copy link
Contributor

@Hamms Hamms commented Oct 17, 2017

Otherwise, movement via small directional swipes will tend to send the player walking indefinitely in the indicated direction.

Fixes code-dot-org/craft#264

@Hamms Hamms requested a review from joshlory October 17, 2017 23:51
@@ -335,6 +347,7 @@ Craft.init = function (config) {
mc.add(new Hammer.Press({time: 150}) );
mc.add(new Hammer.Tap() );
mc.on("pan", onDrag);
mc.on('panend pancancel', onDragEnd);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these events documented somewhere in the Hammer.js docs?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Hamms Hamms merged commit 3300b01 into staging Oct 19, 2017
@Hamms Hamms deleted the craft-add-drag-end branch October 19, 2017 18:21
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.

None yet

2 participants