Add option to disable swiping motions across the WebUI (#13885)
Fixes #13882
This commit is contained in:
parent
2ee7e2c5c3
commit
78e45a5285
12 changed files with 21 additions and 3 deletions
|
@ -10,6 +10,7 @@ import ImmutablePureComponent from 'react-immutable-pure-component';
|
|||
import ImageLoader from './image_loader';
|
||||
import Icon from 'mastodon/components/icon';
|
||||
import GIFV from 'mastodon/components/gifv';
|
||||
import { disableSwiping } from 'mastodon/initial_state';
|
||||
|
||||
const messages = defineMessages({
|
||||
close: { id: 'lightbox.close', defaultMessage: 'Close' },
|
||||
|
@ -212,6 +213,7 @@ class MediaModal extends ImmutablePureComponent {
|
|||
containerStyle={containerStyle}
|
||||
onChangeIndex={this.handleSwipe}
|
||||
index={index}
|
||||
disabled={disableSwiping}
|
||||
>
|
||||
{content}
|
||||
</ReactSwipeableViews>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue