[squeak-dev] Re: Double-click gone missing?

Eliot Miranda eliot.miranda at gmail.com
Tue Jan 12 22:20:13 UTC 2016


On Tue, Jan 12, 2016 at 10:17 AM, tim Rowledge <tim at rowledge.org> wrote:

>
> > On 12-01-2016, at 4:22 AM, marcel.taeumel <Marcel.Taeumel at hpi.de> wrote:
> >
> > So it has been broken some time ago? There is just no double-click in the
> > default tools? :)
>
> It’s broken by Eliot’s recent changes to the millisecond time stuff. The
> vm still passes events in with a 32 bit timestamp based on ioMSecs() but
> the various ‘faked’ events we have to use such as MouseEvent>asMouseMove
> use Time>millisecondClockValue. Which *used* to be based on ioMSecs() as
> well but is no longer. Thus any d-clicking will generally have problems
> because the core MouseClickState code must inevitably get confused by the
> resultant attempts to compare ioMSecs() values in the few-million range
> with primitive 241 values in the range umpty-gazillion.
>

Ah!  OK, I'll try and fix this pronto.


>
> The obvious nice way to deal with this is to upgrade the vm but that would
> screw all previous images and so on. Bad idea. Another option would be to
> add a method to one or other event related class to keep using the old prim
> for a millisecond value and update the user methods - ok for future images,
> mildly annoying but livable (maybe) for older ones. Or maybe it would be
> manageable to keep the millisecondsClockValue (either in the prim code or
> by in-image offset) working off the same base as the ioMSecs() code.
>

Yes, I think with my changes there needs to be another change which adds a
delta to the value answered by the millisecond clock until the VM is
upgraded suitably.  I'll take a look at this promptly.  And in the mean
time apologies.

>
> tim
> --
> tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
> Strange OpCodes: FSRA: Forms Skip and Run-Away
>
>
>
>


-- 
_,,,^..^,,,_
best, Eliot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20160112/5ac01cf0/attachment.htm


More information about the Squeak-dev mailing list