Skip to content

Commit

Permalink
Static Analyzer Fixes
Browse files Browse the repository at this point in the history
Closes #1452
Closes #1453
  • Loading branch information
baconpaul committed Nov 21, 2024
1 parent f3d08c7 commit 6198474
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src-ui/app/browser-ui/BrowserPane.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ struct DriveFSListBoxRow : public juce::Component

isMouseDownWithoutDrag = false;

if (!isDragging && e.getDistanceFromDragStart() > 1.5f)
if (!isDragging && e.getDistanceFromDragStart() > 2)
{
stopPreview();
if (auto *container = juce::DragAndDropContainer::findParentDragContainerFor(this))
Expand Down
2 changes: 1 addition & 1 deletion src-ui/app/edit-screen/components/GroupTriggersCard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ struct GroupTriggersCard::ConditionRow : juce::Component, HasEditor
a2M.reset();
}
else if ((int)sr.id >= (int)engine::GroupTriggerID::MACRO &&
(int)sr.id <= (int)engine::GroupTriggerID::MACRO + scxt::macrosPerPart)
(int)sr.id < (int)engine::GroupTriggerID::MACRO + scxt::macrosPerPart)
{
auto dm = datamodel::pmd()
.asFloat()
Expand Down
2 changes: 1 addition & 1 deletion src-ui/app/edit-screen/components/GroupZoneTreeControl.h
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ template <typename SidebarParent, bool fz> struct GroupZoneListBoxModel : juce::
if (!isZone())
return;

if (!isDragging && e.getDistanceFromDragStart() > 1.5f)
if (!isDragging && e.getDistanceFromDragStart() > 2)
{
if (auto *container = juce::DragAndDropContainer::findParentDragContainerFor(this))
{
Expand Down
2 changes: 1 addition & 1 deletion src-ui/app/edit-screen/components/ProcessorPane.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1196,7 +1196,7 @@ void ProcessorPane::itemDropped(const juce::DragAndDropTarget::SourceDetails &dr

void ProcessorPane::mouseDrag(const juce::MouseEvent &e)
{
if (!isDragging && e.getDistanceFromDragStart() > 1.5f)
if (!isDragging && e.getDistanceFromDragStart() > 2)
{
if (auto *container = juce::DragAndDropContainer::findParentDragContainerFor(this))
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ void ZoneLayoutDisplay::mouseDrag(const juce::MouseEvent &e)
{
if (mouseState == DRAG_SELECTED_ZONE)
{
if (e.getDistanceFromDragStart() < 2)
if (e.getDistanceFromDragStart() <= 2)
{
return;
}
Expand Down

0 comments on commit 6198474

Please sign in to comment.