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

range slider with ion-nav menu left #82

Open
SidharthPHariharan opened this issue Sep 8, 2015 · 1 comment
Open

range slider with ion-nav menu left #82

SidharthPHariharan opened this issue Sep 8, 2015 · 1 comment

Comments

@SidharthPHariharan
Copy link

Hi I am using your range slider with ion nav menu left drawer. while swiping on the slider the drawer menu also opens can you gimme a work around for this?
I came across this as a suggestion in the internet about a directive as below
.directive('ion-range', function() {
return {
restrict: 'C',
link: function (scope, element, attr) {
element.bind('touchstart mousedown', function(event) {
event.stopPropagation();
event.stopImmediatePropagation();
});
}
};
})
this is not working, can some one come up with something else.

@danielcrisp
Copy link
Owner

You might need to listen for touchmove as well.

Alternatively I think there is a way to temporarily disable the ion menu. So you could disable it on touchstart (within the range slider) and re-enable it on touchend (anywhere)

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

No branches or pull requests

2 participants