We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b6c9b12 + ba796a3 commit d666293Copy full SHA for d666293
1 file changed
web/text_layer_builder.js
@@ -169,13 +169,14 @@ class TextLayerBuilder {
169
#bindMouse(end) {
170
const { div } = this;
171
const abortSignal = this.#abortSignal;
172
+ const opts = abortSignal ? { signal: abortSignal } : null;
173
174
div.addEventListener(
175
"mousedown",
176
() => {
177
div.classList.add("selecting");
178
},
- { signal: abortSignal }
179
+ opts
180
);
181
182
@@ -190,7 +191,7 @@ class TextLayerBuilder {
190
191
}
192
stopEvent(event);
193
194
195
196
197
TextLayerBuilder.#textLayers.set(div, end);
0 commit comments