mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-22 23:28:08 +01:00
Fix media modal prev button behavior. (#4158)
This commit is contained in:
parent
1c6c6b271c
commit
b21ab498f8
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue