Skip to content

Commit bd01f1c

Browse files
Remove touchend parts
1 parent 4d3b0bc commit bd01f1c

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

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

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,16 @@ export const InteractivesDisableArticleSwipe = () => {
77
getInteractionClient()
88
.disableArticleSwipe(true)
99
.catch((error) => {
10-
log('dotcom', 'disableArticleSwipe(true) failed', error);
11-
});
12-
};
13-
14-
const onTouchEnd = () => {
15-
getInteractionClient()
16-
.disableArticleSwipe(false)
17-
.catch((error) => {
18-
log('dotcom', 'disableArticleSwipe(false) failed', error);
10+
log('dotcom', 'disableArticleSwipe failed', error);
1911
});
2012
};
2113
useEffect(() => {
2214
document.addEventListener('touchstart', onTouchStart, {
2315
passive: true,
2416
});
25-
document.addEventListener('touchend', onTouchEnd, { passive: true });
2617

2718
return () => {
2819
document.removeEventListener('touchstart', onTouchStart);
29-
document.removeEventListener('touchend', onTouchEnd);
3020
};
3121
}, []);
3222
return null;

0 commit comments

Comments
 (0)