move bug ?

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
kevin11
Posts: 101
Joined: Thu Aug 11, 2011 5:02 pm

move bug ?

Post by kevin11 » Mon Aug 29, 2011 5:00 pm

Hi,

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.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10330
Joined: Wed May 06, 2009 2:28 pm

Re: move bug ?

Post by dunbarx » Mon Aug 29, 2011 9:06 pm

I tried a bunch of different similar actions and never got a failure. OSX10.4.11, LC 4.5.3

Craig Newman

kevin11
Posts: 101
Joined: Thu Aug 11, 2011 5:02 pm

Re: move bug ?

Post by kevin11 » Tue Aug 30, 2011 12:26 am

Thanks. On Windows (XP SP 2) it's quite sticky.

Post Reply