Skip to content

Commit

Permalink
Update OverviewViz.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
mustafasaifee42 committed Nov 9, 2023
1 parent e23faa4 commit f79c9cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/OverviewVisualizations/OverviewViz.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ interface Props {
}

const WrapperEl = styled.div`
scroll-snap-type: x mandatory;
scroll-snap-type: x proximity;
scroll-padding: 0;
scroll-padding-left: 0;
display: flex;
Expand Down Expand Up @@ -67,8 +67,8 @@ export function OverviewViz(props: Props) {
onClick={e => {
if (WrapperRef.current) {
if (e.clientX > window.innerWidth / 2)
WrapperRef.current.scrollBy(50, 0);
else WrapperRef.current.scrollBy(-50, 0);
WrapperRef.current.scrollBy(360, 0);
else WrapperRef.current.scrollBy(-360, 0);
}
}}
onMouseMove={e => {
Expand Down

0 comments on commit f79c9cd

Please sign in to comment.