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

lolsob-rspec
unarist 2017-05-25 23:27:44 +09:00 committed by Eugen Rochko
parent 9efb491366
commit d85be9315a
1 changed files with 4 additions and 0 deletions

View File

@ -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)];