Rajith Kalluraya wrote:
> Hi,
> 
> You can do a clutter_grab_pointer on the scrollbar widget in its button
> press handler. Motion events and the release events will be received by
> the scrollbar widget no matter where the mouse is.
> 
> Make sure you call clutter_ungrab_pointer in the release handler.
> 
> That should so the trick.
> 

Thanks a lot.

Unfortunately it's just a partial fix even with my workarounds.

I have separate animations for hover (enter/leave - opacity
increase/decrese) and click/release. Now when I grab the pointer, the
enter/leave boundaries become those of the stage, and my hover highlight
stays lit when the mouse button is released outside of the element
boundaries but within the stage boundaries.

I can't "unlight" it in the button_release signal handler because the
pointer might have ended up hovering over the element at the end of the
scrolling operation, so it must remain "lighted". That is, unless there
is a way to check whether the pointer is currently above a given element.

Any more ideas?

-Bartek

-- 
To unsubscribe send a mail to [email protected]

Reply via email to