File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed
dotcom-rendering/src/components Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ import libDebounce from 'lodash.debounce';
1111import { useRef , useState } from 'react' ;
1212import { interactiveLegacyFigureClasses } from '../layouts/lib/interactiveLegacyStyling' ;
1313import { type ArticleFormat , ArticleSpecial } from '../lib/articleFormat' ;
14- import { getInteractionClient } from '../lib/bridgetApi' ;
1514import { useOnce } from '../lib/useOnce' ;
1615import { palette as themePalette } from '../palette' ;
1716import type { RoleType } from '../types/content' ;
@@ -350,12 +349,6 @@ export const InteractiveBlockComponent = ({
350349 ? true
351350 : false ;
352351
353- const isApps = renderingTarget === 'Apps' ;
354-
355- const onTouchStart = ( ) => getInteractionClient ( ) . disableArticleSwipe ( true ) ;
356-
357- const onTouchEnd = ( ) => getInteractionClient ( ) . disableArticleSwipe ( false ) ;
358-
359352 useOnce ( ( ) => {
360353 // We've brought the behavior from boot.js into this file to avoid loading 2 extra scripts
361354
@@ -462,8 +455,6 @@ export const InteractiveBlockComponent = ({
462455 data-alt = { alt } // for compatibility with custom boot scripts
463456 data-testid = { `interactive-element-${ encodeURI ( alt ?? '' ) } ` }
464457 data-spacefinder-role = { role }
465- onTouchStart = { isApps ? onTouchStart : undefined }
466- onTouchEnd = { isApps ? onTouchEnd : undefined }
467458 >
468459 { ! loaded && (
469460 < >
You can’t perform that action at this time.
0 commit comments