1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-25 17:48:07 +02:00

[Editor] Add the possibility to move all the selected editors with the mouse (bug 1847894)

This commit is contained in:
Calixte Denizet 2023-08-09 11:23:26 +02:00
parent d4ba312f00
commit 402e3fed95
9 changed files with 292 additions and 85 deletions

View file

@ -198,6 +198,7 @@ exports.serializeBitmapDimensions = serializeBitmapDimensions;
async function dragAndDropAnnotation(page, startX, startY, tX, tY) {
await page.mouse.move(startX, startY);
await page.mouse.down();
await page.waitForTimeout(10);
await page.mouse.move(startX + tX, startY + tY);
await page.mouse.up();
}