1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Merge pull request #19373 from Hydraulicus/fix-drawing-beyond-page

[Editor] Add validation for the target element of curve endpoints
This commit is contained in:
calixteman 2025-01-23 23:54:37 +01:00 committed by GitHub
commit 38800715cd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 58 additions and 1 deletions

View file

@ -834,7 +834,7 @@ class DrawingEditor extends AnnotationEditor {
parent.toggleDrawing(true);
this._cleanup(false);
if (event) {
if (event?.target === parent.div) {
parent.drawLayer.updateProperties(
this._currentDrawId,
DrawingEditor.#currentDraw.end(event.offsetX, event.offsetY)