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

Fixes #250 - Calling user specified change callback. #265

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fixes #250 - Calling user specified change callback. #265

wants to merge 1 commit into from

Conversation

maxschmeling
Copy link

I'm new to this library, but I had the issue of the user specified change method not being called. This seems to fix the issue.

I based the changed off of the code here:

        var touchMove = function (e) {
            var v = s.xy2val(
                        e.originalEvent.touches[s.t].pageX,
                        e.originalEvent.touches[s.t].pageY
                    );

            if (v == s.cv) return;

            if (s.cH && s.cH(v) === false) return;

            s.change(s._validate(v));
            s._draw();
        };

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