Throwing the mouse at the toolbox real quick

Stefan Monov logixoul at gmail.com
Thu Apr 17 18:48:59 CEST 2008


On Monday 14 April 2008 00:41:03 you wrote:
> On Wednesday 16 April 2008, Stefan Monov wrote:
> > Since r781885 throwing the mouse at the toolbox really quick does not
> > expand it. This seems to be an unintentional side effect caused by
> > non-continuous event positions, am I correct?
>
> in the hover event we draw a path that consists of just the outside pixels
> of the toolbox (the arc) and only respond to hover events that occur within
> that.
>
> this prevents:
>
> * triggering due to moving from one virtual screen to another
> * triggering when closing a window whose close button is over the box
>
> probably other things as well. to make it less annoying, we could make the
> path wider.

Right, I gathered that much. But this is ultimately a hack:
[1] moving from one virtual screen to another, while accidentally hovering the 
mouse above the trigger-arc, will still open the toolbox (unlikely, yeah)
[2] the legit case of "throwing the mouse at the toolbox real quick" is broken

*if* we can get events for continuous positions (so the hover event occurs at 
the outermost pixel of the toolbox), [2] will just go away. Also we'll be 
able to make the trigger-arc 1px wide, practically eliminating [1] as well.

So my question was this: is this technically possible?
And if not, will it be possible to treat my pain point [2] in some other way?

Note that widening the trigger-arc (as you suggest, and alreadly have done) 
would lessen [2] but worsen [1], whereas shrinking it would lessen [1] but 
worsen [2].

Thanks,
Stefan.


More information about the Panel-devel mailing list