Merge pull request #19511 from calixteman/editor_dnd_image
[Editor] Wait for switching to stamp mode before adding a new editor when dnd'ing an image
This commit is contained in:
commit
a857ca3261
@ -621,9 +621,9 @@ class AnnotationEditorLayer {
|
||||
* @param {number} mode
|
||||
* @param {Object} params
|
||||
*/
|
||||
pasteEditor(mode, params) {
|
||||
async pasteEditor(mode, params) {
|
||||
this.#uiManager.updateToolbar(mode);
|
||||
this.#uiManager.updateMode(mode);
|
||||
await this.#uiManager.updateMode(mode);
|
||||
|
||||
const { offsetX, offsetY } = this.#getCenterPoint();
|
||||
const id = this.getNextId();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user