Skip to content

Commit d94e917

Browse files
Remove from InteractiveBlockComponent
(It's deprecated)
1 parent 0c0e376 commit d94e917

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

dotcom-rendering/src/components/InteractiveBlockComponent.importable.tsx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import libDebounce from 'lodash.debounce';
1111
import { useRef, useState } from 'react';
1212
import { interactiveLegacyFigureClasses } from '../layouts/lib/interactiveLegacyStyling';
1313
import { type ArticleFormat, ArticleSpecial } from '../lib/articleFormat';
14-
import { getInteractionClient } from '../lib/bridgetApi';
1514
import { useOnce } from '../lib/useOnce';
1615
import { palette as themePalette } from '../palette';
1716
import 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
<>

0 commit comments

Comments
 (0)