I think I have come across an error in the SVG icon widget. If the mouse is
released outside of the widget, the mouseUp handler is trigged even if the user
has moved the pointer outside of the rect of the widget. The mouseLeave handler
is correctly triggered before the mouseUp handler fires away
Tore N. wrote:
> I think I have come across an error in the SVG icon widget. If the mouse
> is released outside of the widget, the mouseUp handler is trigged even if
> the user has moved the pointer outside of the rect of the widget.
> The mouseLeave handler is correctly triggered before the mouseU
You are right. I tend to use the svgIcon widget as a replacement for buttons
with icons, as I like to use color/icon switch as a highlight effect, and I
find that it is easier to produce persistent design with the widget. I just
have to check if the mouseLoc is within the rect of the widget to m