Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0006580 [Squeak] Morphic major always 07-31-07 03:51 06-02-10 06:15
Reporter wiz View Status public  
Assigned To
Priority normal Resolution open  
Status new   Product Version
Summary 0006580: [FIX] {ENH] MouseMoveEvent>deltaVector now reports how much mouse moved.
Description Context: You are trying to move something in tandem with the hand.
Their are constrains on the target.

Problem: You have a choice. Keep track of a changing target offset.
Movng the target only when the hand is within the constraints.
Or doing something else.

Solution: by having the event return the amount of motion that can be added to the target and then the constraints can be applied to the target.
The target will continue to remain responsive to the hand.
Additional Information See 0005567 hand targetOffset has been misused more times than it has been used correctly.

Those were bugs caused by confusion on how to track a target to the mouse.

I have also played enough to realize that what squeak generally does is elastic tracking. When moving a submorph, for example, eventually the movement stops at the owners border. Then moving the hand further away or closer to the submorph has no effect until the hand is within range. As if there were a rubber band that got stretched and must be allowed to unstretch before movement is resumed.

More responsive is inelastic tracking. As soon as the mouse starts moving back the submorph moves with it until it comes upon another constraint.

see 0005997:
[enh] Improved constrained dragging behavior with brown halo handle

So this is an enhancement that allows getting the event to tell you just the movement.

And to ask any mouse event if it has a movement to report.

Attached Files  MouseMoveEnh-wiz.2.cs [^] (1,553 bytes) 07-31-07 03:51
 Point-sign.st [^] (192 bytes) 08-02-07 02:14
 MouseMoveEnh-wiz.3.cs [^] (2,118 bytes) 08-02-07 02:15
 Notes-on-delta...orWithTug.text [^] (2,408 bytes) 08-02-07 02:19
 MouseMoveTests-wiz.1.cs [^] (6,350 bytes) 08-12-07 23:06
 MouseMoveEnh-wiz.5.cs [^] (1,878 bytes) 08-12-07 23:07

- Relationships
related to 0007540closed lewis Some point functions have gone missing. 

- Notes
(0010955 - 320 - 338 - 448 - 448 - 448 - 448)
wiz
08-02-07 02:23

 Point-sign.st --makes point polymorphic with Collection and Number for selector #sign.
 MouseMoveEnh-wiz.3.cs -- depends on Point-sign.st. adds #deltaVectorAndTug:
 Notes-on-delta...orWithTug.text explains what that does and how it works.
See http://209.143.91.36/super/729 [^] for an example in action (3.9 project)
 

- Issue History
Date Modified Username Field Change
07-31-07 03:51 wiz New Issue
07-31-07 03:51 wiz File Added: MouseMoveEnh-wiz.2.cs
08-02-07 02:14 wiz File Added: Point-sign.st
08-02-07 02:15 wiz File Added: MouseMoveEnh-wiz.3.cs
08-02-07 02:19 wiz File Added: Notes-on-delta...orWithTug.text
08-02-07 02:23 wiz Note Added: 0010955
08-12-07 23:06 wiz File Added: MouseMoveTests-wiz.1.cs
08-12-07 23:07 wiz File Added: MouseMoveEnh-wiz.5.cs
06-02-10 06:15 wiz Relationship added related to 0007540


Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
52 total queries executed.
32 unique queries executed.
Powered by Mantis Bugtracker