Jump to content
Search Community

The problem that onDragEnd is not called in Observer

jinnyum test
Moderator Tag

Go to solution Solved by GreenSock,

Recommended Posts

  • Solution

Yes, that was actually by design - especially for touch devices, it's quite easy for users to press and release but the device still registers their release as very slightly different than their press position, thus it would trigger a click/onDragEnd. That's why we built in a threshold of 3 pixels. But in the next release I think I'll alter that so it only affects click event firing and allows onDragEnd. You can preview that here: 

https://assets.codepen.io/16327/Observer.min.js

 

In the meantime, you can easily work around it like this: 

See the Pen NWEgwoj?editors=0010 by GreenSock (@GreenSock) on CodePen

 

 

  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...