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

This commit is contained in:
unarist authored and Eugen Rochko committed 2017-05-25 16:27:44 +02:00
1 parent a8736aab7a
commit 3e3ec9b2c8
1 file changed
+4
@@ -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)];