fix panning
This commit is contained in:
parent
032d77df2c
commit
f899834401
@ -79,9 +79,9 @@ export default function Canvas(props) {
|
|||||||
endY: e.clientY - offsetY,
|
endY: e.clientY - offsetY,
|
||||||
});
|
});
|
||||||
} else if (
|
} else if (
|
||||||
dragging[0] === ObjectType.NONE &&
|
|
||||||
panning &&
|
panning &&
|
||||||
areaResize === -1
|
dragging[0] === ObjectType.NONE &&
|
||||||
|
areaResize.id === -1
|
||||||
) {
|
) {
|
||||||
const dx = e.clientX - panOffset.x;
|
const dx = e.clientX - panOffset.x;
|
||||||
const dy = e.clientY - panOffset.y;
|
const dy = e.clientY - panOffset.y;
|
||||||
|
Loading…
Reference in New Issue
Block a user