Merge pull request #14722 from Rob--W/scripting-manager-mousedown-grab-to-pan-conflict
PDFScriptingManager: Bind mousedown listener with capture=true
This commit is contained in:
commit
fffce7910e
@ -154,7 +154,7 @@ class PDFScriptingManager {
|
|||||||
this._eventBus._on(name, listener);
|
this._eventBus._on(name, listener);
|
||||||
}
|
}
|
||||||
for (const [name, listener] of this._domEvents) {
|
for (const [name, listener] of this._domEvents) {
|
||||||
window.addEventListener(name, listener);
|
window.addEventListener(name, listener, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
@ -507,7 +507,7 @@ class PDFScriptingManager {
|
|||||||
this._internalEvents.clear();
|
this._internalEvents.clear();
|
||||||
|
|
||||||
for (const [name, listener] of this._domEvents) {
|
for (const [name, listener] of this._domEvents) {
|
||||||
window.removeEventListener(name, listener);
|
window.removeEventListener(name, listener, true);
|
||||||
}
|
}
|
||||||
this._domEvents.clear();
|
this._domEvents.clear();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user