Browse Source

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

closed-social-v3
unarist 7 years ago
committed by Eugen Rochko
parent
commit
3e3ec9b2c8
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      app/javascript/mastodon/components/status_content.js

+ 4
- 0
app/javascript/mastodon/components/status_content.js 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)];

Loading…
Cancel
Save