mirror of
https://github.com/drawdb-io/drawdb.git
synced 2025-09-20 14:34:55 +00:00
fix panning
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user