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 an error on dragging into status_content component (
#3308
)
closed-social-v3
unarist
7 years ago
committed by
Eugen Rochko
parent
a8736aab7a
commit
3e3ec9b2c8
1 changed files
with
4 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-0
app/javascript/mastodon/components/status_content.js
+ 4
- 0
app/javascript/mastodon/components/status_content.js
View File
@ -65,6 +65,10 @@ class StatusContent extends React.PureComponent {
}
handleMouseUp
=
(
e
)
=>
{
if
(
!
this
.
startXY
)
{
return
;
}
const
[
startX
,
startY
]
=
this
.
startXY
;
const
[
deltaX
,
deltaY
]
=
[
Math
.
abs
(
e
.
clientX
-
startX
)
,
Math
.
abs
(
e
.
clientY
-
startY
)
]
;
Write
Preview
Loading…
Cancel
Save