style(#2855): fix scrollY for change scrubber coordinate

keep-around/3d3716c8eecddecc93aa1855ad3f52b67b2f7b4b
Andrei Dekterev 3 years ago
parent 52e09f43c3
commit 71d1c1620b
  1. 3
      src/features/MatchPage/index.tsx
  2. 3
      src/features/PageLayout/styled.tsx

@ -13,6 +13,7 @@ import { FavoritesActions } from 'requests'
import { ProfileTypes } from 'config' import { ProfileTypes } from 'config'
import { client } from 'config/clients' import { client } from 'config/clients'
import { isIOS } from 'config/userAgent'
import { usePageLogger } from 'hooks/usePageLogger' import { usePageLogger } from 'hooks/usePageLogger'
import { usePageParams } from 'hooks/usePageParams' import { usePageParams } from 'hooks/usePageParams'
@ -65,7 +66,7 @@ const MatchPageComponent = () => {
history.push(`/${sportName}/tournaments/${profile.tournament.id}`) history.push(`/${sportName}/tournaments/${profile.tournament.id}`)
} }
return ( return (
<PageWrapper> <PageWrapper isIOS={isIOS}>
<ProfileHeader color='#2B2A28' height={client.name === 'facr' ? 5 : 4.5} /> <ProfileHeader color='#2B2A28' height={client.name === 'facr' ? 5 : 4.5} />
<Main> <Main>
<UserFavorites /> <UserFavorites />

@ -3,8 +3,9 @@ import styled, { css } from 'styled-components/macro'
import { isMobileDevice } from 'config/userAgent' import { isMobileDevice } from 'config/userAgent'
import { customScrollbar } from 'features/Common' import { customScrollbar } from 'features/Common'
export const PageWrapper = styled.div` export const PageWrapper = styled.div<{isIOS?: boolean}>`
width: 100%; width: 100%;
touch-action: ${({ isIOS }) => (isIOS ? 'none' : 'unset')};
` `
export const Main = styled.main` export const Main = styled.main`

Loading…
Cancel
Save