Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/pages/PathwaysNiivueCanvas.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ export const PathwaysNiivueCanvas = () => (

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