@@ -166,28 +166,28 @@ export class PointerHeading {
166166          } 
167167        } ,  DOUBLE_CLICK_TIME ) ; 
168168      } 
169+     } 
169170
170-       // Selects multiple columns or rows. If ctrl/meta is pressed w/o shift, 
171-       // then it add or removes the clicked column or row. If shift is pressed, 
172-       // then it selects all columns or rows between the last clicked column or 
173-       // row and the current one. 
174-       const  bounds  =  pixiApp . viewport . getVisibleBounds ( ) ; 
175-       const  headingSize  =  pixiApp . headings . headingSize ; 
176-       if  ( intersects . column  !==  null )  { 
177-         const  top  =  sheets . sheet . getRowFromScreen ( bounds . top  +  headingSize . height ) ; 
178-         cursor . selectColumn ( intersects . column ,  e . ctrlKey  ||  e . metaKey ,  e . shiftKey ,  isRightClick ,  top ) ; 
179-       }  else  if  ( intersects . row  !==  null )  { 
180-         const  left  =  sheets . sheet . getColumnFromScreen ( bounds . left ) ; 
181-         cursor . selectRow ( intersects . row ,  e . ctrlKey  ||  e . metaKey ,  e . shiftKey ,  isRightClick ,  left ) ; 
182-       } 
183-       if  ( isRightClick )  { 
184-         events . emit ( 'contextMenu' ,  { 
185-           world, 
186-           column : intersects . column  ??  undefined , 
187-           row : intersects . row  ??  undefined , 
188-           type : ContextMenuType . Grid , 
189-         } ) ; 
190-       } 
171+     // Selects multiple columns or rows. If ctrl/meta is pressed w/o shift, 
172+     // then it add or removes the clicked column or row. If shift is pressed, 
173+     // then it selects all columns or rows between the last clicked column or 
174+     // row and the current one. 
175+     const  bounds  =  pixiApp . viewport . getVisibleBounds ( ) ; 
176+     const  headingSize  =  pixiApp . headings . headingSize ; 
177+     if  ( intersects . column  !==  null )  { 
178+       const  top  =  sheets . sheet . getRowFromScreen ( bounds . top  +  headingSize . height ) ; 
179+       cursor . selectColumn ( intersects . column ,  e . ctrlKey  ||  e . metaKey ,  e . shiftKey ,  isRightClick ,  top ) ; 
180+     }  else  if  ( intersects . row  !==  null )  { 
181+       const  left  =  sheets . sheet . getColumnFromScreen ( bounds . left ) ; 
182+       cursor . selectRow ( intersects . row ,  e . ctrlKey  ||  e . metaKey ,  e . shiftKey ,  isRightClick ,  left ) ; 
183+     } 
184+     if  ( isRightClick )  { 
185+       events . emit ( 'contextMenu' ,  { 
186+         world, 
187+         column : intersects . column  ??  undefined , 
188+         row : intersects . row  ??  undefined , 
189+         type : ContextMenuType . Grid , 
190+       } ) ; 
191191    } 
192192
193193    return  true ; 
0 commit comments