move bug ?
Posted: Mon Aug 29, 2011 5:13 pm
oops, reposting here because I posted this into the wrong forum.....
I have an image that I can drag around the screen with a mouse (for my own very good reasons !)
When I release the mouse, I want the image to move back to the centre, but slowly.
I use :
move image "X" to 512,384 in 600 millisecond
95% of the time the image will move slowly as required.
5% of the time, it doesn't move, it snaps at high speed to the location,
and very, very occasionally, the image doesn't move at all.
If I use output messages I can see the command is indeed being called. Changing the number of milliseconds has no effect on the failure rate. If I use, for example, move image "X" to 512,384 in 1000 millisecond, it still snaps in 5% of the cases.
However, the image stays still for 1 second, before snapping. Increasing to say, 3000 ms, the image will mostly crawl back into position, but again, in 5% or so of the cases, it will sit still for three seconds and then snap.
It's as if in 5% of the case the move command is behaving more like the "set location" command. (and very rarely, the image won't move at all !)
This doesn't seem right to me.
I have an image that I can drag around the screen with a mouse (for my own very good reasons !)
When I release the mouse, I want the image to move back to the centre, but slowly.
I use :
move image "X" to 512,384 in 600 millisecond
95% of the time the image will move slowly as required.
5% of the time, it doesn't move, it snaps at high speed to the location,
and very, very occasionally, the image doesn't move at all.
If I use output messages I can see the command is indeed being called. Changing the number of milliseconds has no effect on the failure rate. If I use, for example, move image "X" to 512,384 in 1000 millisecond, it still snaps in 5% of the cases.
However, the image stays still for 1 second, before snapping. Increasing to say, 3000 ms, the image will mostly crawl back into position, but again, in 5% or so of the cases, it will sit still for three seconds and then snap.
It's as if in 5% of the case the move command is behaving more like the "set location" command. (and very rarely, the image won't move at all !)
This doesn't seem right to me.