Merge pull request #16557 from calixteman/no_events_on_canvas
Disable events on canvas in the annotation layer
This commit is contained in:
commit
5f1fba503c
@ -403,4 +403,32 @@ describe("ResetForm action", () => {
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
describe("FreeText widget", () => {
|
||||
describe("issue14438.pdf", () => {
|
||||
let pages;
|
||||
|
||||
beforeAll(async () => {
|
||||
pages = await loadAndWait(
|
||||
"issue14438.pdf",
|
||||
"[data-annotation-id='10R']"
|
||||
);
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
await closePages(pages);
|
||||
});
|
||||
|
||||
it("must check that the annotation has a popup", async () => {
|
||||
await Promise.all(
|
||||
pages.map(async ([browserName, page]) => {
|
||||
await page.click("[data-annotation-id='10R']");
|
||||
await page.waitForFunction(
|
||||
`document.querySelector("[data-annotation-id='10R'] .popupWrapper").hidden !== undefined`
|
||||
);
|
||||
})
|
||||
);
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@ -67,6 +67,7 @@
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.annotationLayer section {
|
||||
|
Loading…
Reference in New Issue
Block a user