mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-25 06:13:43 +01:00
Fix an error on dragging into status_content component (#3308)
This commit is contained in:
parent
a8736aab7a
commit
3e3ec9b2c8
1 changed files with 4 additions and 0 deletions
|
@ -65,6 +65,10 @@ class StatusContent extends React.PureComponent {
|
||||||
}
|
}
|
||||||
|
|
||||||
handleMouseUp = (e) => {
|
handleMouseUp = (e) => {
|
||||||
|
if (!this.startXY) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const [ startX, startY ] = this.startXY;
|
const [ startX, startY ] = this.startXY;
|
||||||
const [ deltaX, deltaY ] = [Math.abs(e.clientX - startX), Math.abs(e.clientY - startY)];
|
const [ deltaX, deltaY ] = [Math.abs(e.clientX - startX), Math.abs(e.clientY - startY)];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue