Browse Source

fix: video offset

Peng Xiao 3 years ago
parent
commit
f23c6349f6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tldraw/apps/tldraw-logseq/src/hooks/usePaste.ts

+ 1 - 1
tldraw/apps/tldraw-logseq/src/hooks/usePaste.ts

@@ -282,7 +282,7 @@ export function usePaste(context: LogseqContextValue) {
         ...assetsToCreate.map((asset, i) => ({
           ...(asset.type === 'video' ? VideoShape : ImageShape).defaultProps,
           // TODO: Should be place near the last edited shape
-          point: [point[0] - asset.size[0] / 2 + i * 16, point[1] - asset.size[1] / 2 + i * 16],
+          point: [point[0] - asset.size[0] / 4 + i * 16, point[1] - asset.size[1] / 4 + i * 16],
           size: Vec.div(asset.size, 2),
           assetId: asset.id,
           opacity: 1,