<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi Juan, <br>
</p>
<p>I have observed you discard trail mouse positions:</p>
<p><!-- HTML generated using hilite.me --></p>
<div
style="background: #ffffff; overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;">
<pre style="margin: 0; line-height: 125%"><span
style="color: #BB0066; font-weight: bold">HandMorph</span><span
style="color: #0066BB; font-weight: bold">>>generateMouseEvent:</span> <span
style="color: #996633">evtBuf</span>
...
<span style="color: #996633">type</span> <span
style="color: #0066BB; font-weight: bold">==</span> <span
style="color: #AA6600">#mouseMove</span>
<span style="color: #007020">ifTrue:</span> [
<span style="color: #996633">trail</span> <span style="color: #333333">:=</span> <span
style="color: #007020">self</span> <span
style="color: #0066BB; font-weight: bold">mouseTrailFrom:</span> <span
style="color: #996633">evtBuf</span>.
<span style="color: #333333">^</span><span
style="color: #BB0066; font-weight: bold">MouseMoveEvent</span> <span
style="color: #007020">new</span>
<span style="color: #0066BB; font-weight: bold">setType:</span> <span
style="color: #996633">type</span>
<span style="color: #0066BB; font-weight: bold">position:</span> <span
style="color: #996633">trail</span> <span
style="color: #0066BB; font-weight: bold">last</span>
<span style="color: #0066BB; font-weight: bold">buttons:</span> <span
style="color: #996633">buttons</span>
<span style="color: #0066BB; font-weight: bold">hand:</span> <span
style="color: #007020">self</span>
<span style="color: #0066BB; font-weight: bold">stamp:</span> <span
style="color: #996633">stamp</span>].
</pre>
</div>
<p><br>
</p>
<p>In the Squeak implementation, it is still taken in consideration
in the MouseMoveEvent instance.</p>
<p>I am porting the 1Dollar recognizer from Squeak and I can
observed a far greater amount of mouse positions taken in
consideration in the original package, because of the trail array:</p>
<p><!-- HTML generated using hilite.me --></p>
<div
style="background: #ffffff; overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;">
<pre style="margin: 0; line-height: 125%"><span
style="color: #BB0066; font-weight: bold">HandMorph</span><span
style="color: #0066BB; font-weight: bold">>>generateMouseEvent:</span> <span
style="color: #996633">evtBuf</span>
...
<span style="color: #996633">type</span> <span
style="color: #0066BB; font-weight: bold">==</span> <span
style="color: #AA6600">#mouseMove</span> <span
style="color: #007020">ifTrue:</span>
[<span style="color: #996633">trail</span> <span style="color: #333333">:=</span> <span
style="color: #007020">self</span> <span
style="color: #0066BB; font-weight: bold">mouseTrailFrom:</span> <span
style="color: #996633">evtBuf</span>.
<span style="color: #333333">^</span><span
style="color: #BB0066; font-weight: bold">MouseMoveEvent</span> <span
style="color: #007020">new</span>
<span style="color: #0066BB; font-weight: bold">setType:</span> <span
style="color: #996633">type</span>
<span style="color: #0066BB; font-weight: bold">startPoint:</span> <span
style="color: #007020">self</span> <span
style="color: #0066BB; font-weight: bold">position</span>
<span style="color: #0066BB; font-weight: bold">endPoint:</span> <span
style="color: #996633">trail</span> <span
style="color: #0066BB; font-weight: bold">last</span>
<b> <span style="color: rgb(0, 102, 187);">trail:</span> <span
style="color: #996633">trail</span></b>
<span style="color: #0066BB; font-weight: bold">buttons:</span> <span
style="color: #996633">buttons</span>
<span style="color: #0066BB; font-weight: bold">hand:</span> <span
style="color: #007020">self</span>
<span style="color: #0066BB; font-weight: bold">stamp:</span> <span
style="color: #996633">stamp</span>].
</pre>
</div>
<p>I have experimented putting back the trail in the MouseMoveEvent,
and indead it provide more information.</p>
<p>I ma likely need the trail too in my PaperMorph for the Dynabook.<br>
</p>
<p>What do you think?</p>
<p>Hilaire <br>
</p>
</body>
</html>