Error in mouseUp in SVG widgets

2016-10-02 Thread Tore Nilsen
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

Re: Error in mouseUp in SVG widgets

2016-10-02 Thread hh
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

Re: Error in mouseUp in SVG widgets

2016-10-02 Thread Tore Nilsen
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