about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorunarist <m.unarist@gmail.com>2017-05-25 23:27:44 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-05-25 16:27:44 +0200
commit3e3ec9b2c87146846869a2534ba505304654beac (patch)
treea4669fe14e52b7c29f675550a1a284507b9fda0e /app
parenta8736aab7a27fd09cf30df13400becfe39a15ba1 (diff)
Fix an error on dragging into status_content component (#3308)
Diffstat (limited to 'app')
-rw-r--r--app/javascript/mastodon/components/status_content.js4
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)];