[Editor] Avoid to scroll when an editor is unselected
This commit is contained in:
		
							parent
							
								
									d96fd80ca0
								
							
						
					
					
						commit
						c2fcc66302
					
				@ -1503,7 +1503,9 @@ class AnnotationEditor {
 | 
			
		||||
    if (this.div?.contains(document.activeElement)) {
 | 
			
		||||
      // Don't use this.div.blur() because we don't know where the focus will
 | 
			
		||||
      // go.
 | 
			
		||||
      this._uiManager.currentLayer.div.focus();
 | 
			
		||||
      this._uiManager.currentLayer.div.focus({
 | 
			
		||||
        preventScroll: true,
 | 
			
		||||
      });
 | 
			
		||||
    }
 | 
			
		||||
    this.#editToolbar?.hide();
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user