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

Added stopPropagation to main event #642

Closed
wants to merge 1 commit into from
Closed

Conversation

haas85
Copy link

@haas85 haas85 commented Aug 9, 2014

There is a call in the main event that calls to srcElement's prevent default. This commit do the same but for stopPropagation.

data.stopPropagation = function() {
data.srcEvent.stopPropagation();
};

@runspired
Copy link
Contributor

This is likely to support something along the lines of #808. Overall, this may be a bad approach currently because srcEvent isn't always the event you think it is (e.g. in the case of pan, srcEvent is currently a mousemove not a mousedown). Should be wrapped into changes to fix #815.

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.

2 participants