Skip to content

Commit

Permalink
Traktor: Drag and drop bug in PreviewList fixed if mouse up event is …
Browse files Browse the repository at this point in the history
…received without an matching down.
  • Loading branch information
apistol78 committed Nov 6, 2023
1 parent 137fca5 commit 700464f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/Ui/PreviewList/PreviewList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ void PreviewList::eventButtonUp(MouseButtonUpEvent* event)
DragEvent dragEvent(this, DragEvent::Moment::Drop, position);
raiseEvent(&dragEvent);
}
m_dragMode = 0;
}

void PreviewList::eventMouseMove(MouseMoveEvent* event)
Expand All @@ -196,7 +197,7 @@ void PreviewList::eventMouseMove(MouseMoveEvent* event)
if (!(dragEvent.consumed() && dragEvent.cancelled()))
m_dragMode = 2;
else
m_dragMode = 3;
m_dragMode = 0;
}
}
}
Expand Down

0 comments on commit 700464f

Please sign in to comment.