diff options
-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)]; |