We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c9e36f commit 58fa2f8Copy full SHA for 58fa2f8
1 file changed
src/tracker.pas
@@ -2882,6 +2882,10 @@ procedure TfrmTracker.WaveEditPaintBoxMouseMove(Sender: TObject;
2882
begin
2883
X := EnsureRange(X, 0, WaveEditPaintBox.Width);
2884
Y := EnsureRange(Y, 0, WaveEditPaintBox.Height);
2885
+ if DrawingWave and not (ssLeft in Shift) then begin
2886
+ DrawingWave := False;
2887
+ Panic;
2888
+ end;
2889
if DrawingWave then begin
2890
Idx := EnsureRange(Round((X / WaveEditPaintBox.Width)*32), Low(TWave), High(TWave));
2891
CurrentWave^[Idx] := EnsureRange(Round($F-((Y / WaveEditPaintBox.Height)*$F)), 0, $F);
0 commit comments