[sbe-discussion] SBE-Quinto bug of sorts

David Einstein deinst at gmail.com
Mon Apr 28 14:34:01 MEST 2008


Hi,
  I may be misunderstanding something, but if I click on a cell in the
Quinto Game, drag the mouse slightly, and let the mouse up, then the clicked
on cell gets toggled along with the surrounding cells.  Yes, I realize that
the game is just an example of smalltalk code, but unintended behavior can
be confusing to someone who is not sure that his code is correct.  Poking
around a bit: the following seems to work without being too intrusive

SBECell >> mouseUp: anEvent
    self setSwitchState: (oldColor = onColor).
    mouseAction value


(It seems to work on my machine)

Thanks for the great book.  Learning Smalltalk has been on my to-do list for
decades, you have finally made it possible
/s/ Deinst
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.iam.unibe.ch/pipermail/sbe-discussion/attachments/20080428/6ab12ea4/attachment.html


More information about the Sbe-discussion mailing list