jinnyum Posted July 3, 2023 Share Posted July 3, 2023 hi In the observer, onDragEnd is not called when the mouse moves below 3px. What could be the problem...? See the Pen mdQwMBW?editors=1111 by cgfpythc-the-vuer (@cgfpythc-the-vuer) on CodePen Link to comment Share on other sites More sharing options...
Solution GreenSock Posted July 3, 2023 Solution Share Posted July 3, 2023 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 2 Link to comment Share on other sites More sharing options...
jinnyum Posted July 4, 2023 Author Share Posted July 4, 2023 thank very much~~~~!!!!!!!!! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now