[Editor] Wait for switching to stamp mode before adding a new editor when dnd'ing an image
When dnd'ing an image with the FreeText mode enabled, the image wasn't correctly added.
This commit is contained in:
parent
203452c170
commit
9984afe6a6
@ -621,9 +621,9 @@ class AnnotationEditorLayer {
|
|||||||
* @param {number} mode
|
* @param {number} mode
|
||||||
* @param {Object} params
|
* @param {Object} params
|
||||||
*/
|
*/
|
||||||
pasteEditor(mode, params) {
|
async pasteEditor(mode, params) {
|
||||||
this.#uiManager.updateToolbar(mode);
|
this.#uiManager.updateToolbar(mode);
|
||||||
this.#uiManager.updateMode(mode);
|
await this.#uiManager.updateMode(mode);
|
||||||
|
|
||||||
const { offsetX, offsetY } = this.#getCenterPoint();
|
const { offsetX, offsetY } = this.#getCenterPoint();
|
||||||
const id = this.getNextId();
|
const id = this.getNextId();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user