diff --git a/app/javascript/mastodon/components/status_content.js b/app/javascript/mastodon/components/status_content.js index 1a474802ab2c7093cbca4b84861a91794b3cf929..06e25b36a66f529ca661cd41b4ece6dc2d2fa054 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)];