<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Hilaire,<br>
<br>
Apologies for the late response.<br>
(below)<br>
<br>
On 8/4/2024 11:32 AM, Hilaire Fernandes via Cuis-dev wrote:
<blockquote cite="mid:d44ecda8-998e-4d24-9dbf-c71d821383a6@free.fr"
type="cite">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<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: none repeat scroll 0% 0% rgb(255, 255,
255); overflow: auto; width: auto; border-style: solid;
border-color: gray; border-width: 0.1em 0.1em 0.1em 0.8em;
padding: 0.2em 0.6em;">
<pre style="margin: 0pt; line-height: 125%;"><span style="color: rgb(187, 0, 102); font-weight: bold;">HandMorph</span><span style="color: rgb(0, 102, 187); font-weight: bold;">>>generateMouseEvent:</span> <span style="color: rgb(153, 102, 51);">evtBuf</span>
...
<span style="color: rgb(153, 102, 51);">type</span> <span style="color: rgb(0, 102, 187); font-weight: bold;">==</span> <span style="color: rgb(170, 102, 0);">#mouseMove</span>
<span style="color: rgb(0, 112, 32);">ifTrue:</span> [
<span style="color: rgb(153, 102, 51);">trail</span> <span style="color: rgb(51, 51, 51);">:=</span> <span style="color: rgb(0, 112, 32);">self</span> <span style="color: rgb(0, 102, 187); font-weight: bold;">mouseTrailFrom:</span> <span style="color: rgb(153, 102, 51);">evtBuf</span>.
<span style="color: rgb(51, 51, 51);">^</span><span style="color: rgb(187, 0, 102); font-weight: bold;">MouseMoveEvent</span> <span style="color: rgb(0, 112, 32);">new</span>
<span style="color: rgb(0, 102, 187); font-weight: bold;">setType:</span> <span style="color: rgb(153, 102, 51);">type</span>
<span style="color: rgb(0, 102, 187); font-weight: bold;">position:</span> <span style="color: rgb(153, 102, 51);">trail</span> <span style="color: rgb(0, 102, 187); font-weight: bold;">last</span>
<span style="color: rgb(0, 102, 187); font-weight: bold;">buttons:</span> <span style="color: rgb(153, 102, 51);">buttons</span>
<span style="color: rgb(0, 102, 187); font-weight: bold;">hand:</span> <span style="color: rgb(0, 112, 32);">self</span>
<span style="color: rgb(0, 102, 187); font-weight: bold;">stamp:</span> <span style="color: rgb(153, 102, 51);">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: none repeat scroll 0% 0% rgb(255, 255,
255); overflow: auto; width: auto; border-style: solid;
border-color: gray; border-width: 0.1em 0.1em 0.1em 0.8em;
padding: 0.2em 0.6em;">
<pre style="margin: 0pt; line-height: 125%;"><span style="color: rgb(187, 0, 102); font-weight: bold;">HandMorph</span><span style="color: rgb(0, 102, 187); font-weight: bold;">>>generateMouseEvent:</span> <span style="color: rgb(153, 102, 51);">evtBuf</span>
...
<span style="color: rgb(153, 102, 51);">type</span> <span style="color: rgb(0, 102, 187); font-weight: bold;">==</span> <span style="color: rgb(170, 102, 0);">#mouseMove</span> <span style="color: rgb(0, 112, 32);">ifTrue:</span>
[<span style="color: rgb(153, 102, 51);">trail</span> <span style="color: rgb(51, 51, 51);">:=</span> <span style="color: rgb(0, 112, 32);">self</span> <span style="color: rgb(0, 102, 187); font-weight: bold;">mouseTrailFrom:</span> <span style="color: rgb(153, 102, 51);">evtBuf</span>.
<span style="color: rgb(51, 51, 51);">^</span><span style="color: rgb(187, 0, 102); font-weight: bold;">MouseMoveEvent</span> <span style="color: rgb(0, 112, 32);">new</span>
<span style="color: rgb(0, 102, 187); font-weight: bold;">setType:</span> <span style="color: rgb(153, 102, 51);">type</span>
<span style="color: rgb(0, 102, 187); font-weight: bold;">startPoint:</span> <span style="color: rgb(0, 112, 32);">self</span> <span style="color: rgb(0, 102, 187); font-weight: bold;">position</span>
<span style="color: rgb(0, 102, 187); font-weight: bold;">endPoint:</span> <span style="color: rgb(153, 102, 51);">trail</span> <span style="color: rgb(0, 102, 187); font-weight: bold;">last</span>
<b> <span style="color: rgb(0, 102, 187);">trail:</span> <span style="color: rgb(153, 102, 51);">trail</span></b>
<span style="color: rgb(0, 102, 187); font-weight: bold;">buttons:</span> <span style="color: rgb(153, 102, 51);">buttons</span>
<span style="color: rgb(0, 102, 187); font-weight: bold;">hand:</span> <span style="color: rgb(0, 112, 32);">self</span>
<span style="color: rgb(0, 102, 187); font-weight: bold;">stamp:</span> <span style="color: rgb(153, 102, 51);">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>
</blockquote>
<br>
I removed it because I saw no good use for it in the base image code
base. Maybe we can add it back, controlled by a class variable to
turn it on.<br>
<br>
What is the current status of this, one week later?<br>
<br>
Thanks,<br>
<pre class="moz-signature" cols="72">--
Juan Vuletich
cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
linkedin.com/in/juan-vuletich-75611b3
twitter.com/JuanVuletich</pre>
</body>
</html>