This website works better with JavaScript.
Home
Explore
Help
Sign In
jyt94
/
closedSocialMastodon
forked from
closed-social/mastodon
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
Fix media modal prev button behavior. (
#4158
)
closed-social-v3
Naoki Kosaka
7 years ago
committed by
Eugen Rochko
parent
1c6c6b271c
commit
b21ab498f8
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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
)
=>
{
Write
Preview
Loading…
Cancel
Save