Skip to content

Commit

Permalink
More snap
Browse files Browse the repository at this point in the history
  • Loading branch information
FigBug committed Feb 3, 2024
1 parent 752f338 commit 824cd56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/gin_plugin/components/gin_msegcomponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,8 @@ void MSEGComponent::mouseDown (const juce::MouseEvent& e)
if (data.numPoints == data.maxPoints)
return;

auto t = xToTime (e.position.x);
auto v = yToValue (e.position.y);
auto t = snapT (xToTime (e.position.x));
auto v = snapV (yToValue (e.position.y));

for (auto i = 0; i < data.numPoints - 1; i++)
{
Expand Down

0 comments on commit 824cd56

Please sign in to comment.