<div dir="ltr">Do you have the code available so I can look at it?<div><br></div><div>Best,</div><div>Karl</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 2, 2015 at 3:30 AM, tim Rowledge <span dir="ltr">&lt;<a href="mailto:tim@rowledge.org" target="_blank">tim@rowledge.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I’m trying to provide the appearance of a cursor that is gridded in a paint program; the idea is that the tool cursor should jump only to positions on the grid and when the bitmap is scaled to say 4X that would be every 4th pixel position on the screen.<br>
<br>
Since making the actual HandMorph &amp; real cursor do gridding seemed a bit of a heavyweight thing to impose on everything else, I’m attempting to do it by handling mousemove events within my painting canvas morph. It *almost* works but there is something very odd going on at far too frequent occasions.<br>
<br>
So far as I can currently tell the event handling code up in Morph &amp; HandMorph is sometimes deciding that the mouse has left my morph and thus sends me a mouseleave event instead of a a move. Then as soon as the cursor moves, I get a new mouseenter and more moves until whatever it is upsets things again. There’s some unpleasantly complex code up at MouseOverHandler&gt;processMouseOver: for example that appears to be in the middle of my problem - best I can tell is that ‘leftMorphs’ is somehow including my morph when the mouse is still right there in the middle of it.<br>
<br>
My basic scheme is to create a suitable ImageMorph on the mouseEnter, change its position with each mouseMove and then delete it on mouseLeave.  I have implemented handlesMouseMove: to always return true, so I seem to get all the move events.<br>
<br>
Any idea about why I get the dud mouseLeave events? Has anyone else done a scaled-up-grid-cursor thingy?<br>
<br>
tim<br>
--<br>
tim Rowledge; <a href="mailto:tim@rowledge.org">tim@rowledge.org</a>; <a href="http://www.rowledge.org/tim" rel="noreferrer" target="_blank">http://www.rowledge.org/tim</a><br>
&quot;How many Pak Protectors does it take to change a lightbulb?”<br>
&quot;Only one, but the lightbulb has to smell right.&quot;<br>
<br>
<br>
<br>
<br>
</blockquote></div><br></div>