[sldev] [VIEWER] Bug/inefficiency in mouse-handling in
LLScrollLIstCtrl and other GUI classes?
Lawson English
lenglish5 at cox.net
Tue Sep 18 09:58:47 PDT 2007
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.
2007-09-18T16:45:37Z INFO: handleClick: Text clicked and x is: 10 y is: 1
2007-09-18T16:45:37Z INFO: handleClick: Text clicked and x is: 10 y is: 1
2007-09-18T16:45:37Z INFO: handleClick: Text clicked and x is: 10 y is: 1
2007-09-18T16:45:37Z INFO: handleClick: Text clicked and x is: 10 y is: 1
2007-09-18T16:45:37Z INFO: handleClick: Text clicked and x is: 10 y is: 1
2007-09-18T16:45:37Z INFO: handleClick: Text clicked and x is: 10 y is: 1
2007-09-18T16:45:37Z INFO: handleClick: Text clicked and x is: 10 y is: 1
2007-09-18T16:45:37Z INFO: handleClick: Text clicked and x is: 10 y is: 1
2007-09-18T16:45:37Z INFO: handleClick: Text clicked and x is: 10 y is: 1
2007-09-18T16:45:37Z INFO: handleClick: Text clicked and x is: 10 y is: 1
2007-09-18T16:45:37Z INFO: handleClick: Text clicked and x is: 10 y is: 1
2007-09-18T16:45:37Z INFO: handleClick: Text clicked and x is: 10 y is: 1
2007-09-18T16:45:37Z INFO: onCommitSelect: item is: test1
2007-09-18T16:45:51Z INFO: handleClick: Text clicked and x is: 21 y is: 1
2007-09-18T16:45:51Z INFO: handleClick: Text clicked and x is: 21 y is: 1
2007-09-18T16:45:51Z INFO: handleClick: Text clicked and x is: 21 y is: 1
2007-09-18T16:45:51Z INFO: handleClick: Text clicked and x is: 21 y is: 1
2007-09-18T16:45:51Z INFO: handleClick: Text clicked and x is: 21 y is: 1
2007-09-18T16:45:51Z INFO: handleClick: Text clicked and x is: 21 y is: 1
2007-09-18T16:45:51Z INFO: handleClick: Text clicked and x is: 21 y is: 1
2007-09-18T16:45:51Z INFO: handleClick: Text clicked and x is: 21 y is: 1
2007-09-18T16:45:51Z INFO: handleClick: Text clicked and x is: 21 y is: 1
2007-09-18T16:45:51Z INFO: handleClick: Text clicked and x is: 21 y is: 1
2007-09-18T16:45:51Z INFO: onCommitSelect: item is: test2
More information about the SLDev
mailing list