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:
commit
38800715cd
2 changed files with 58 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue