[Editor] Add the possibility to move all the selected editors with the mouse (bug 1847894)

This commit is contained in:
Calixte Denizet 2023-08-09 11:23:26 +02:00
parent d4ba312f00
commit 402e3fed95
9 changed files with 292 additions and 85 deletions

View file

@ -226,6 +226,9 @@ class InkEditor extends AnnotationEditor {
/** @inheritdoc */
rebuild() {
if (!this.parent) {
return;
}
super.rebuild();
if (this.div === null) {
return;
@ -626,7 +629,7 @@ class InkEditor extends AnnotationEditor {
// When commiting, the position of this editor is changed, hence we must
// move it to the right position in the DOM.
this.parent.moveEditorInDOM(this);
this.moveInDOM();
this.div.focus({
preventScroll: true /* See issue #15744 */,
});