[Cuis-dev] Strange behavior with stepping
Hilaire Fernandes
hilaire at drgeo.eu
Sat Aug 21 04:14:38 PDT 2021
Hi,
In DrGeo there is this user interaction to let the user easily merges
two points: the user moves one point over another one to merge with,
then holds for 1500 milliseconds for the merging operation to take place.
It is done with stepping:
restartMouseStillDownHandle self startStepping:
#processMouseStillDown in: 1500 stepTime: 1]
The problem is the mouseStillDown message is called immediately not
after 1500 milliseconds.
Looking at step code below, is the at: argument right? Tried with Time
millisecondClockValue (as coded with Pharo), the effect is the same:
startStepping: aSelector in: millisecs stepTime: stepTime "Start
stepping the receiver" self world ifNotNil: [ :w | w
startStepping: self at: Time localMillisecondClock +
millisecs selector: aSelector stepTime: stepTime]
Any clue?
Thanks, best
--
GNU Dr. Geo
http://drgeo.eu
http://blog.drgeo.eu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20210821/aa96a4d2/attachment.htm>
More information about the Cuis-dev
mailing list