Skip to content

Commit

Permalink
removed commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
CedricGuillemetMS committed Apr 11, 2022
1 parent 14a91c1 commit 8afa1d7
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions ImGuizmo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2816,16 +2816,6 @@ namespace IMGUIZMO_NAMESPACE
}
isInside = gContext.mbMouseOver && ImRect(position, position + size).Contains(io.MousePos);

// drag view
/*if (!isDraging && io.MouseClicked[0] && isInside && (fabsf(io.MouseDelta[0]) || fabsf(io.MouseDelta[1])))
{
isDraging = true;
isClicking = false;
}
else if (isDraging && !io.MouseDown[0])
{
isDraging = false;
}*/
if (io.MouseDown[0] && (fabsf(io.MouseDelta[0]) || fabsf(io.MouseDelta[1])) && isClicking)
{
isClicking = false;
Expand Down

0 comments on commit 8afa1d7

Please sign in to comment.