Skip to content

Commit

Permalink
minor docs 'n' tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
frasercl committed Feb 6, 2024
1 parent 10ab211 commit e4c3b19
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/aics-image-viewer/components/AxisClipSliders/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ type PlaySliderRowProps = {
const PlaySliderRow: React.FC<PlaySliderRowProps> = (props) => {
// In partially-loaded axes, stores the displayed value of the slider while the user is sliding it
const [valReadout, setValReadout] = useState(props.val);
// Tracks when the user is sliding the slider and `valReadout` may have to sub in for props
const [sliderHeld, setSliderHeld] = useState(false);

const wrappedOnChange = useCallback(([val]: number[]) => props.onChange?.(val), [props.onChange]);
Expand All @@ -117,6 +118,7 @@ const PlaySliderRow: React.FC<PlaySliderRowProps> = (props) => {
setSliderHeld(false);
props.onEnd?.();
}, [props.onEnd]);

return (
<>
<SliderRow
Expand Down

0 comments on commit e4c3b19

Please sign in to comment.