Skip to content

Commit

Permalink
Merge pull request #122 from tote-bag-labs/fix-button-clicks
Browse files Browse the repository at this point in the history
Fix button clicks
  • Loading branch information
JoseDiazRohena authored Apr 26, 2024
2 parents 35c5461 + d12af13 commit e84db82
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gui/panels/ValentineBottomRowPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ void BottomRowPanel::resized()

// We have to do this because the slider will otherwise intercept
// button clips.
const auto outputSliderWidth = sliderWidth - buttonNudge;
const auto outputSliderWidth = sliderWidth - juce::roundToInt (buttonNudge * 2.1f);
const auto outputSliderX = outputSliderArea.getCentreX() - outputSliderWidth / 2;

outputSlider.setBounds (
Expand Down
3 changes: 2 additions & 1 deletion src/gui/panels/ValentineTopRowPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ void TopRowPanel::resized()

// We have to do this because the slider will otherwise intercept
// button clips.
const auto sliderWidth = sliderInitialWidth - buttonNudge;
const auto sliderWidth =
sliderInitialWidth - juce::roundToInt (buttonNudge * 2.1f);
const auto sliderX = sliderArea.getCentreX() - sliderWidth / 2;

slider.setBounds (sliderArea.withX (sliderX).withWidth (sliderWidth));
Expand Down

0 comments on commit e84db82

Please sign in to comment.