mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +02:00
[Editor] Add the possibility to move all the selected editors with the mouse (bug 1847894)
This commit is contained in:
parent
d4ba312f00
commit
402e3fed95
9 changed files with 292 additions and 85 deletions
|
@ -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 */,
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue