updated sequence

This commit is contained in:
2024-05-14 13:47:44 +05:00
parent dc1f84d115
commit 74889a2d48
5 changed files with 4 additions and 4 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 530 KiB

After

Width:  |  Height:  |  Size: 186 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 461 KiB

After

Width:  |  Height:  |  Size: 162 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 506 KiB

After

Width:  |  Height:  |  Size: 175 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 435 KiB

After

Width:  |  Height:  |  Size: 192 KiB

@@ -12,7 +12,7 @@ import useSequence from "../../store/useSequence";
import SequenceHighlighting from "./SequenceHighlighting";
const arrayLength = 360;
const keyframes: number[] = [50, 177, 247, 338];
const keyframes: number[] = [51, 178, 249, 339];
// const keyframes: number[] = [50, 177, 248, 338];
interface SequenceSliderProps {
@@ -55,7 +55,7 @@ function SequenceSlider({ path }: SequenceSliderProps) {
duration: 0.75,
ease: "power1.inOut",
onUpdate: () => {
const roundedIndex = Math.round(obj.selectedImageIndex);
const roundedIndex = Math.floor(obj.selectedImageIndex);
if (roundedIndex >= arrayLength) {
setSelectedRightImageIndex(roundedIndex - arrayLength);
@@ -82,7 +82,7 @@ function SequenceSlider({ path }: SequenceSliderProps) {
duration: 0.75,
ease: "power1.inOut",
onUpdate: () => {
const roundedIndex = Math.round(obj.selectedImageIndex);
const roundedIndex = Math.floor(obj.selectedImageIndex);
if (roundedIndex > arrayLength) {
setSelectedRightImageIndex(
@@ -174,7 +174,7 @@ function SequenceSlider({ path }: SequenceSliderProps) {
))}
</div>
<SequenceHighlighting
keyframe={selectedImageRightIndex + 2}
keyframe={selectedImageRightIndex + 1}
onClick={handleOnSequenceClick}
/>
</div>