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

dragStartCallback / dragStopCallback not working? #96

Closed
thiagocoelho opened this issue Jun 23, 2015 · 5 comments
Closed

dragStartCallback / dragStopCallback not working? #96

thiagocoelho opened this issue Jun 23, 2015 · 5 comments

Comments

@thiagocoelho
Copy link

Hi,

I'm not sure if I missed something but looks like those events aren't working.

This is my code:

    drag = new Dragdealer('drag_'+container_id, {
      animationCallback: function(x, y) {
        // doing some cool stuff here
      },
      dragStartCallback: function(x, y) {
        console.log('drag start');
      },
      dragStopCallback: function(x, y) {
        console.log('drag stop');
      },
      steps: 2,
      speed: 0.50
    });
@ovidiuch
Copy link
Owner

Are you testing with the latest Dragdealer version? This is the line that triggers the dragStart event: https://github.com/skidding/dragdealer/blob/master/src/dragdealer.js#L547

@thiagocoelho
Copy link
Author

I'm using the lastest version, looks like those callbacks aren't implemented in this version :P

https://github.com/skidding/dragdealer/blob/0.9.8/src/dragdealer.js#L547

@ovidiuch
Copy link
Owner

Right. You should be using the unreleased 0.9.9 version :P https://github.com/skidding/dragdealer/blob/master/src/dragdealer.js

@thiagocoelho
Copy link
Author

Thank you @skidding

Now I'm using the latest (master).

Everything working like a charm! :D

@ovidiuch
Copy link
Owner

🆒

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