-
Notifications
You must be signed in to change notification settings - Fork 30
Disable app article swipe on interactive atom blocks #14131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Hello 👋! When you're ready to run Chromatic, please apply the You will need to reapply the label each time you want to run Chromatic. |
Size Change: +1.33 kB (+0.13%) Total Size: 1.05 MB
ℹ️ View Unchanged
|
dotcom-rendering/src/components/InteractiveBlockComponent.importable.tsx
Outdated
Show resolved
Hide resolved
dotcom-rendering/src/components/InteractiveBlockComponent.importable.tsx
Outdated
Show resolved
Hide resolved
Chatted to @frederickobrien briefly about this PR, which is hugely promising — how might we test this? Fred mentioned there aren't many interactives that are likely to exercise this functionality because it does not currently work on Android. |
…rtable.tsx Co-authored-by: Jonathon Herbert <[email protected]>
…rtable.tsx Co-authored-by: Jonathon Herbert <[email protected]>
f56854e
to
a44f936
Compare
Switching this to a draft, @jonathonherbert, because as per #14140 this might need a little more investigation than I initially thought |
In the same spirit as #14127 this fires the Bridget function
disableArticleSwipe()
when readers are interacting with interactive embed blocks. The implementation here is more targeted than on interactive articles, more akin to carousels and key events in live blogs.This will allow interactive embeds to have a wider range of features. At present a lot of touch events don't work as intended because they clash with Android's 'swipe for next article' feature.
Would really value @guardian/dotcom-platform's take on this as we don't want to overstep. As per #14140 the changes here currently apply to interactive elements but not atoms. The PR will will need further work to cover the use cases we want it to.
Alternatively, we could deprecate the swipe for next article feature entirely...