Skip to content

Commit

Permalink
Do not generate extra click events (#267)
Browse files Browse the repository at this point in the history
  • Loading branch information
fjvallarino authored May 15, 2023
1 parent a36492c commit ed81c98
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Monomer/Widgets/Containers/Box.hs
Original file line number Diff line number Diff line change
Expand Up @@ -430,9 +430,7 @@ makeBox config state = widget where

ButtonAction point btn BtnReleased clicks
| clicks > 1 && not (null reqs) && inChildVp point -> result where
reqsA = _boxOnClickReq config
reqsB = _boxOnBtnReleasedReq config <*> pure btn <*> pure clicks
reqs = reqsA <> reqsB
reqs = _boxOnBtnReleasedReq config <*> pure btn <*> pure clicks
result = Just (resultReqs node reqs)

ButtonAction point btn BtnReleased clicks
Expand Down

0 comments on commit ed81c98

Please sign in to comment.