[squeak-dev] The Inbox: Morphic-ct.1634.mcz
K K Subbu
kksubbu.ml at gmail.com
Sat Feb 29 12:34:19 UTC 2020
On 29/02/20 5:21 PM, Thiede, Christoph wrote:
> > is isPicking really required? Why introduce a mode?
>
>
> If we don't introduce a mode, the target's color will be updated about
> 50 times per second (depending on your image's speed). This can be
> really slow ... Using #isPicking allows deferring the color update until
> the user really clicks at any point. Still, the currently hovered color
> is displayed in the picker.
>
Liveness support in Morphic is designed to handle situations like this.
ColorPickerMorph already has a step method every 50ms to handle live
feedback. Also see
ColorPickerMorph>>indicateColorUnderMouse
and COlorPickerMorph>>pickColorAt:
Regards .. Subbu
More information about the Squeak-dev
mailing list
|