π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Deps
Manav Rathi330ff5b9d065
diff --git a/web/apps/photos/src/components/Collections/CollectionListBar/index.tsx b/web/apps/photos/src/components/Collections/CollectionListBar/index.tsxindex 6bca9dbb13..53b7bad9d4 100644--- a/web/apps/photos/src/components/Collections/CollectionListBar/index.tsx+++ b/web/apps/photos/src/components/Collections/CollectionListBar/index.tsx@@ -104,9 +104,7 @@ const CollectionListBar = (props: IProps) => {scrollComponent,onFarLeft,onFarRight,- } = useComponentScroll({- dependencies: [windowSize, collectionSummaries],- });+ } = useComponentScroll([windowSize, collectionSummaries]);const collectionListRef = React.useRef(null);@@ -200,7 +198,7 @@ const CollectionListBar = (props: IProps) => {export default CollectionListBar;-function useComponentScroll({ dependencies }: { dependencies: any[] }) {+const useComponentScroll = (deps: React.DependencyList) => {const componentRef = useRef<HTMLDivElement>(null);const [scrollObj, setScrollObj] = useState<{@@ -236,7 +234,7 @@ function useComponentScroll({ dependencies }: { dependencies: any[] }) {useEffect(() => {updateScrollObj();- }, [...dependencies]);+ }, deps);const scrollComponent = (direction: number) => () => {componentRef.current.scrollBy(250 * direction, 0);@@ -254,7 +252,7 @@ function useComponentScroll({ dependencies }: { dependencies: any[] }) {scrollComponent,componentRef,};-}+};const ScrollButtonBase: React.FC<React.ButtonHTMLAttributes<HTMLButtonElement>