mirror of
https://github.com/vsariola/sointu.git
synced 2025-07-18 04:54:27 -04:00
fix(tracker): clicking anywhere outside a menu closes it but does not trigger other action
Closes #27
This commit is contained in:
@ -56,7 +56,6 @@ func (s PopupStyle) Layout(gtx C, contents layout.Widget) D {
|
||||
}
|
||||
|
||||
bg := func(gtx C) D {
|
||||
pointer.PassOp{Pass: true}.Add(gtx.Ops)
|
||||
pointer.InputOp{Tag: s.Visible,
|
||||
Types: pointer.Press,
|
||||
}.Add(gtx.Ops)
|
||||
|
@ -88,7 +88,7 @@ func (t *Tracker) layoutSongButtons(gtx C) D {
|
||||
fileMenuBtnStyle.Color = primaryColor
|
||||
|
||||
for t.FileMenuBtn.Clicked() {
|
||||
t.FileMenuVisible = true
|
||||
t.FileMenuVisible = !t.FileMenuVisible
|
||||
}
|
||||
|
||||
popupWidget := func(gtx C) D {
|
||||
|
Reference in New Issue
Block a user