[Squeakland] Movement oddity...

Peace Jerome peace_the_dreamer at yahoo.com
Mon Mar 20 02:18:33 UTC 2006


Hi Blake,

Great job finding oddities. Keep up the good work.

The key to the movement oddity is in the width and
heigth of the morph. The etoy x and y of the morph are
the center or nearly the center. Which means that when
the morph has an odd width or in this case heigth
either the corner or the center will not be on an
integer boundry. World's mouse x and mouse y are the
cursor point. And that is always integer. Obviously,
somehow, this is causing the inequality to fail after
the morph has been moved. And so it will adjust one
way at one tick and the other way at the next. 

If there are an even number of ticks. It will bobble
twice as much but end up in the same place each time
its displayed. We don't see it. 

A work around is to adjust your morphs width and
height so that they are both even and then the morph
will be rock steady when it gets to the cursor point.

A good way to demostrate the relationship would be to
use a ruler morph as the test morph. And try it with
different heights and widths.



Yours in service, -- Jerome Peace


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the Squeak-dev mailing list