File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -912,18 +912,24 @@ end handler
912912
913913public handler OnMouseDown()
914914 -- the icons change color when they are pressed down
915+ -- update the mouseAction
916+ put locToAction(the mouse position) into mMouseAction
915917 if mMouseAction > 0 then
916918 put mMouseAction into mSelectedAction
917919 redraw all
918920 end if
919921end handler
920922
921923public handler OnMouseUp()
924+ -- update the mouseAction
925+ put locToAction(the mouse position) into mMouseAction
926+ if mMouseAction is mSelectedAction then
927+ post "mouseUp"
928+ end if
929+
922930 -- the icons change back to their original colors on mouse up
923931 put 0 into mSelectedAction
924932 redraw all
925-
926- post "mouseUp"
927933end handler
928934
929935public handler OnMouseMove()
Original file line number Diff line number Diff line change 1+ # [ 17790] Make sure the mouseAction is properly updated when clicking on the headerbar widget
You can’t perform that action at this time.
0 commit comments