This website works better with JavaScript.
Home
Explore
Help
Sign In
closed-social
/
mastodon
Watch
3
Star
0
Fork
2
Code
Issues
5
Pull Requests
0
Projects
0
Releases
3
Wiki
Activity
Browse Source
Fix media modal prev button behavior. (
#4158
)
pull/4/head
Naoki Kosaka
6 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