Don't return false

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
pull/21833/head
Šimon Brandner 2021-04-02 10:22:10 +02:00
parent 2ff34000fd
commit 722178e26e
No known key found for this signature in database
GPG Key ID: 9760693FDD98A790
1 changed files with 1 additions and 1 deletions

View File

@ -202,7 +202,7 @@ export default class ImageView extends React.Component {
ev.stopPropagation(); ev.stopPropagation();
ev.preventDefault(); ev.preventDefault();
if (!this.state.moving) return false; if (!this.state.moving) return;
this.lastX = ev.pageX - this.initX; this.lastX = ev.pageX - this.initX;
this.lastY = ev.pageY - this.initY; this.lastY = ev.pageY - this.initY;