[sldev] [VIEWER] Bug/inefficiency in mouse-handling in LLScrollLIstCtrl and other GUI classes?

Lawson English lenglish5 at cox.net
Tue Sep 18 11:43:43 PDT 2007


Lawson English wrote:
> I've been trying to implement my baby hierarchy/outline list class and 
> I found that "handleClick" to scroll list cells didn't pass the 
> x,y,mask values to the cell. This is required in order to do things 
> like drop-down folder arrow-icons, or  edit-text-in-place cells, so I 
> added the parameters in in the relevant places and dumped the x/y 
> values to the debug console.
>
> The result suggests that handleClick is called over and over again on 
> a single click, even though only one x/y value is passed down the 
> line. This is inefficient, and probably reduces framerate, and 
> possibly has other side-effects as well. The shortest click I could 
> manage called handleClick 9 times.

I am confused about this though. if handleClick is called multiple 
times, it should cause things like LLScrollListCheck::handleClick


to be called multiple times which should set/reset checkboxes over and over.

Testing...


More information about the SLDev mailing list