[Cuis-dev] Discarded mouse trail

Juan Vuletich juan at cuis.st
Mon Aug 12 06:41:22 PDT 2024


Hi Hilaire,

Apologies for the late response.
(below)

On 8/4/2024 11:32 AM, Hilaire Fernandes via Cuis-dev wrote:
>
> Hi Juan,
>
> I have observed you discard trail mouse positions:
>
> HandMorph>>generateMouseEvent:  evtBuf
> ...
> type  ==  #mouseMove
> 	ifTrue:  [
> 		trail  :=  self  mouseTrailFrom:  evtBuf.
> 		^MouseMoveEvent  new
> 			setType:  type
> 			position:  trail  last
> 			buttons:  buttons
> 			hand:  self
> 			stamp:  stamp].
>
>
> In the Squeak implementation, it is still taken in consideration in 
> the MouseMoveEvent instance.
>
> 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:
>
> HandMorph>>generateMouseEvent:  evtBuf
> ...
> type  ==  #mouseMove  ifTrue:
> 	[trail  :=  self  mouseTrailFrom:  evtBuf.
> 	^MouseMoveEvent  new
> 		setType:  type
> 		startPoint:  self  position
> 		endPoint:  trail  last
> *		trail:  trail*
> 		buttons:  buttons
> 		hand:  self
> 		stamp:  stamp].
>
> I have experimented putting back the trail in the MouseMoveEvent, and 
> indead it provide more information.
>
> I ma likely need the trail too in my PaperMorph for the Dynabook.
>
> What do you think?
>
> Hilaire
>

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.

What is the current status of this, one week later?

Thanks,

-- 
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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20240812/e811250e/attachment.htm>


More information about the Cuis-dev mailing list