diff --git a/dotcom-rendering/src/components/InteractiveAtom.tsx b/dotcom-rendering/src/components/InteractiveAtom.tsx index e4889ab8a3b..e97b6f34c08 100644 --- a/dotcom-rendering/src/components/InteractiveAtom.tsx +++ b/dotcom-rendering/src/components/InteractiveAtom.tsx @@ -1,4 +1,5 @@ import { css } from '@emotion/react'; +import { getInteractionClient } from '../lib/bridgetApi'; import { unifyPageContent } from '../lib/unifyPageContent'; import { palette } from '../palette'; import { useConfig } from './ConfigContext'; @@ -37,6 +38,9 @@ type InteractiveAtomType = { title: string; }; +const onTouchStart = () => getInteractionClient().disableArticleSwipe(true); +const onTouchEnd = () => getInteractionClient().disableArticleSwipe(false); + export const InteractiveAtom = ({ id, elementHtml, @@ -47,30 +51,34 @@ export const InteractiveAtom = ({ }: InteractiveAtomType) => { const { renderingTarget } = useConfig(); + const isApps = renderingTarget === 'Apps'; + return ( -
- - -