Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001533 [Squeak] Morphic minor always 07-24-05 01:38 07-24-05 01:38
Reporter Eddie Cottongim View Status public  
Assigned To
Priority normal Resolution open  
Status new   Product Version 3.8
Summary 0001533: Stray selection boxes in SimpleHierarchicalListMorph
Description Try "(1 to: 1000) explore".

Click on an item in the list and keep the button down. A "mousedown" rectangle frame appears. Move the mouse to another item. The rectangle stays on the old item. You can fill up the whole list with rectangles in this way.

The problem is partially because SimpleHierarchicalListMorph: #mouseUp, which removes the selection rectangle, only removes the rectangle at the morph for the current cursor point. You can plug this hole by adding something like this:

    startingMorph := self itemFromPoint: evt startPoint.
    endingMorph := self itemFromPoint: evt position.
    (startingMorph == endingMorph)
        ifFalse:[ startingMorph highlightForMouseDown: false.
                endingMorph highlightForMouseDown: false.
        ].

to the #mouseMove: method, but this only partially fixes the problem. It still happens if you use the mouse wheel while the button is down, and it happens if you click rapidly across the list. I'm not sure where all these other holes are. Maybe a mouseMove event is getting eaten before it gets here occasionally, too.

An alternative to fixing this is getting rid of the "mouseDown" framing rectangle thing and just immediately selecting the new item. That might be easier than tracking down all the places where the rectangle should be erased.
Additional Information
Attached Files

- Relationships

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
07-24-05 01:38 Eddie Cottongim New Issue
07-24-05 01:42 Eddie Cottongim Issue Monitored: Eddie Cottongim


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