Skip to content

Commit

Permalink
Finalize slider
Browse files Browse the repository at this point in the history
  • Loading branch information
catherinekago committed Sep 30, 2021
1 parent fe6ee06 commit d1fa359
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/slider-2/Slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ const Slider = (props) => {
if (movement !== "none") {
translateKnob();
}
}, 20);
}, 5);

return () => clearInterval(interval);
}, [])
Expand Down Expand Up @@ -218,6 +218,7 @@ const Slider = (props) => {
setMovement("left");
setLeftArrowIndicatorClass("arrow-no-fill arrow-left");
setLeftArrowContainerClass("")
setIsKnobLocked(false);

}
document.getElementById("ARROW-LEFT-INDICATOR").removeEventListener("transitionend", onTransitionEnd);
Expand All @@ -228,6 +229,7 @@ const Slider = (props) => {
setMovement("right");
setRightArrowIndicatorClass("arrow-no-fill");
setRightArrowContainerClass("")
setIsKnobLocked(false);

}
document.getElementById("ARROW-RIGHT-INDICATOR").removeEventListener("transitionend", onTransitionEnd);
Expand Down

0 comments on commit d1fa359

Please sign in to comment.