britzl / defold-input

Simplify input related operations such as gesture detection, input mapping and clicking/dragging game objects
MIT License
111 stars 26 forks source link

There's a problem with the cursor (drag) #10

Closed notbadgun closed 4 years ago

notbadgun commented 4 years ago

If you click on the object and quickly move it (drag), it will be moved with an offset. As a result, in dynamic game, the player does not have enough objects and drags them accurately, but with offsets(((

Can this be fixed? Thanks!

This GIF is recorded in your demo. GIF: https://imgur.com/sj8u2Ap

britzl commented 4 years ago

Well, if the click and large movement happens in the same frame this will unfortunately happen. I'm not really sure how to solve it.

britzl commented 4 years ago

Some changes have been made to the cursor script since this bug was reported. And regardless, it's likely difficult to fix completely anyway. Closing.