Skip to content

Commit 440282f

Browse files
committed
Fix the direction of the coronal animation
1 parent 2718930 commit 440282f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pages/PathwaysNiivueCanvas.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ export const PathwaysNiivueCanvas = () => (
420420

421421
const numSlices = nv.volumes[0].dims[2];
422422
// Advance the crosshair fraction by the elapsed time, looping at the volume edge
423-
let y = nv.scene.crosshairPos[1] + (SLICES_PER_SECOND / numSlices) * elapsed;
423+
let y = nv.scene.crosshairPos[1] - (SLICES_PER_SECOND / numSlices) * elapsed;
424424
y -= Math.floor(y); // wrap into [0, 1) to loop continuously
425425
nv.scene.crosshairPos[1] = y;
426426
nv.drawScene();

0 commit comments

Comments
 (0)