When I click on the button with the corresponding script and start moving the cursor, onDrag is called not immediately, but after 10-20 pixels. It’s annoying. How to solve this problem?
I got it boyz. In EventSystem (look right in object in scene) i found such parameter as “Drag Threshold”. set it to zero and it’s done!
Hi!
There is a IBeginDragHandler
interface which should be what you’re looking for.
If that doesn’t work, you can try using the IPointerDownHandler
interface.