diff --git a/ts/mediaEditor/useFabricHistory.ts b/ts/mediaEditor/useFabricHistory.ts index 9f23b61c1e..0eca427005 100644 --- a/ts/mediaEditor/useFabricHistory.ts +++ b/ts/mediaEditor/useFabricHistory.ts @@ -186,6 +186,12 @@ export function useFabricHistory({ } return fabricEffectListener( fabricCanvas, + // We want to take snapshots when objects are added, removed, and modified. The + // first two are obvious. We DON'T want to take snapshots before those things + // happen (like `object:moving`), and we also don't want to take redundant ones + // (which is why we don't listen to both `object:modified` and `object:rotated`). + // + // See for the list of events. ['object:added', 'object:modified', 'object:removed'], ({ target }) => { if (isTimeTraveling || target?.excludeFromExport) {