Skip to content

Commit

Permalink
simplify redraw logic
Browse files Browse the repository at this point in the history
  • Loading branch information
James Bradbury committed Jul 18, 2022
1 parent 4976fc9 commit 7cebafd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion max-package/jsui/fluid.waveform~.js
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,8 @@ function onidle(x, y, button, mod1, shift, caps, opt, mod2)
{
var m = disp.layers[i + layers.length]
.search(l.data.slice(off * l.data.length, l.data.length * (zoom + off)), x);
if (m !== null) redrawNeeded = true;

redrawNeeded = m !== null;
});
}

Expand Down

0 comments on commit 7cebafd

Please sign in to comment.