Hi there,
I am a beginner and following some useful tutorials on the site. I encounter an issue during the tutorial below. I use a mouse to click and drag quickly and object on the screen, but it doesn’t move with the cursor. I have to move slowly enough for the mouse cursor and the object to move synchronously. I am designing a protocol while being able to move an object quickly on screen is key. So, I hope this can be fixed.
https://peterscarfe.com/mouseContingentSquare.html
I looked it up and the mouse polling speed can contribute, but I don’t think that is an issue as I don’t run into this issue on other programs. The issue seems to be having to check if the mouse is clicking in the code. I tried to allow the object to move with the cursor, after clicking and then releasing the mouse button. The tracking works smoothly and has no lagging. Unfortunately, that is not going to work in my experimental protocol.
Please help and thank you very much in advance.
Best regards,
Teerawat