Skip to content

Commit

Permalink
Merge branch 'main' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
jayvarner committed Feb 5, 2024
2 parents f42bfc6 + 01459c0 commit 09442d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/components/home/DraggableTimeline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ export default function DraggableTimeline({
imageSliceStart + IMAGE_COUNT
);

if (selectedImage) images.splice(0, 0, selectedImage);

useEffect(() => {
setState((state) => ({
...state,
Expand Down
2 changes: 1 addition & 1 deletion app/components/home/OrderedTimeline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default function OrderedTimeline({
selectedImage,
}: Props) {
const sliderRef = useRef<HTMLDivElement>(null);
const [currentImageIndex, setCurrentImageIndex] = useState<number>(0);
const [currentImageIndex, setCurrentImageIndex] = useState<number>(sortedImages.indexOf(selectedImage));
const [mouseIsDown, setMouseIsDown] = useState(false);
const [startX, setStartX] = useState(0);
const [scrollLeft, setScrollLeft] = useState(0);
Expand Down

0 comments on commit 09442d9

Please sign in to comment.