logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: 3e3ec9b2c87146846869a2534ba505304654beac
parent: a8736aab7a27fd09cf30df13400becfe39a15ba1
Author: unarist <m.unarist@gmail.com>
Date:   Thu, 25 May 2017 23:27:44 +0900

Fix an error on dragging into status_content component (#3308)


Diffstat:

Mapp/javascript/mastodon/components/status_content.js4++++
1 file changed, 4 insertions(+), 0 deletions(-)

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