Browse Source

Fix media modal prev button behavior. (#4158)

closed-social-v3
Naoki Kosaka 7 years ago
committed by Eugen Rochko
parent
commit
b21ab498f8
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/javascript/mastodon/features/ui/components/media_modal.js

+ 1
- 1
app/javascript/mastodon/features/ui/components/media_modal.js View File

@ -35,7 +35,7 @@ export default class MediaModal extends ImmutablePureComponent {
}
handlePrevClick = () => {
this.setState({ index: (this.getIndex() - 1) % this.props.media.size });
this.setState({ index: (this.props.media.size + this.getIndex() - 1) % this.props.media.size });
}
handleKeyUp = (e) => {

Loading…
Cancel
Save