Skip to content

Commit

Permalink
Merge branch 'feature/viewer-3.3.0' into feature/camera-mode-in-url-p…
Browse files Browse the repository at this point in the history
…arams
  • Loading branch information
toloudis committed Nov 27, 2023
2 parents cfd9203 + e89fa04 commit e1db0a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/aics-image-viewer/components/App/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ const App: React.FC<AppProps> = (props) => {

// TODO is there a better API for values that never change?
const view3d = useConstructor(() => new View3d());
const volumeCache = useConstructor(() => new VolumeCache());
const volumeCache = useConstructor(() => new VolumeCache(250_000_000 * 4));
const [image, setImage] = useState<Volume | null>(null);
const imageUrlRef = useRef<string>("");

Expand Down
2 changes: 1 addition & 1 deletion src/aics-image-viewer/components/AxisClipSliders/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export default class AxisClipSliders extends React.Component<AxisClipSlidersProp
key={`${twoD}`}
label={axis.toUpperCase()}
vals={sliderVals}
max={numSlices - (twoD ? 1 : 0)}
max={numSlices - (twoD && numSlices > 1 ? 1 : 0)}
onSlide={this.makeSliderCallback(axis)}
/>
{twoD && (
Expand Down

0 comments on commit e1db0a3

Please sign in to comment.