Fix graph scrolling bug from #1021

And replicate those changes to the Svelte version.
This commit is contained in:
Keavon Chambers 2023-03-03 02:28:52 -08:00
parent a2046a51b1
commit 6139e807d0
4 changed files with 86 additions and 62 deletions

View file

@ -117,7 +117,6 @@ fn map_image<MapFn>(mut image_frame: ImageFrame, map_fn: &'any_input MapFn) -> I
where
MapFn: for<'any_input> Node<'any_input, Color, Output = Color> + 'input,
{
let mut image_frame = image_frame;
for pixel in &mut image_frame.image.data {
*pixel = map_fn.eval(*pixel);
}