Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jongmoon
Copy link
Contributor

Issue

#288

Details

Although direction of movement is different from options.direction, MC should fire 'release' event.

Preferred reviewers

@sculove, @netil, @mixed

@netil it's related with eg.flicking

Jongmoon Yoon added 2 commits July 12, 2016 15:38
fire release event when moved different direction that was set.

Ref naver#288
@jongmoon jongmoon self-assigned this Jul 12, 2016
@jongmoon jongmoon changed the title Movable coord#288 fix(MovableCoord): fire release event Jul 12, 2016
} else if (e.isFinal && e.direction !== MC.DIRECTION_NONE &&
!(e.direction & this._subOptions.direction)) {
// Although direction of movement is different from options.direction, MC should fire 'release' event.
this._panend(e);
Copy link
Contributor

Choose a reason for hiding this comment

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

@jongmoon you'd better make _triggerRelease method like this

_triggerRelease: function(e) {
this._setInterrupt(false);
this.trigger("release", {
    //...
});

and I find potential bug due to your PR.
we should also initalize this._status.moveDistance
thanks

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@sculove OK, I also think that _panend do much~
I'm happy to help you find the potential bug related with moveDistance.


// Abort the animating post process when "tap" occurs
if (e.type === "tap") {
if (e.distance === 0 /*e.type === "tap"*/) {
Copy link
Contributor

Choose a reason for hiding this comment

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

you should remove tap recognizer in _createHammer method.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@sculove I applied it yesterday.

Copy link
Contributor

Choose a reason for hiding this comment

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

ok I got it!

@sculove
Copy link
Contributor

sculove commented Jul 29, 2016

LGTM

@mixed
Copy link
Member

mixed commented Jul 29, 2016

👍

@jongmoon jongmoon merged commit 2c4891f into naver:master Jul 29, 2016
malangfox pushed a commit that referenced this pull request Jan 6, 2025
Ref #288

* fix(MovableCoord): add exception for DIRECTION_NONE

Close #288
malangfox pushed a commit that referenced this pull request Jan 7, 2025
Ref #288

* fix(MovableCoord): add exception for DIRECTION_NONE

Close #288
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants