diff options
author | unarist <m.unarist@gmail.com> | 2017-05-25 23:27:44 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-05-25 16:27:44 +0200 |
commit | 3e3ec9b2c87146846869a2534ba505304654beac (patch) | |
tree | a4669fe14e52b7c29f675550a1a284507b9fda0e | |
parent | a8736aab7a27fd09cf30df13400becfe39a15ba1 (diff) |
Fix an error on dragging into status_content component (#3308)
-rw-r--r-- | app/javascript/mastodon/components/status_content.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/javascript/mastodon/components/status_content.js b/app/javascript/mastodon/components/status_content.js index 1a474802a..06e25b36a 100644 --- a/app/javascript/mastodon/components/status_content.js +++ b/app/javascript/mastodon/components/status_content.js @@ -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)]; |