toolbar button to undo last step

This commit is contained in:
Joeri Exelmans 2025-10-19 15:11:51 +02:00
parent 59d5e9913a
commit 5e60b3dc95
8 changed files with 99 additions and 31 deletions

View file

@ -314,7 +314,8 @@ export function VisualEditor({ast, setAST, rt, errors, setErrors, mode, highligh
const onMouseMove = (e: {pageX: number, pageY: number}) => {
const currentPointer = getCurrentPointer(e);
if (dragging) {
const pointerDelta = subtractV2D(currentPointer, dragging.lastMousePos);
// const pointerDelta = subtractV2D(currentPointer, dragging.lastMousePos);
const pointerDelta = {x: e.movementX, y: e.movementY};
setState(state => ({
...state,
rountangles: state.rountangles.map(r => {