@@ -426,6 +426,9 @@ export class Editor extends EventEmitter<EditorEventMap> {
426426 onCommentsLoaded : ( ) => null ,
427427 onCommentClicked : ( ) => null ,
428428 onCommentLocationsUpdate : ( ) => null ,
429+ onPointerDown : ( ) => null ,
430+ onPointerUp : ( ) => null ,
431+ onRightClick : ( ) => null ,
429432 onDocumentLocked : ( ) => null ,
430433 onFirstRender : ( ) => null ,
431434 onCollaborationReady : ( ) => null ,
@@ -763,6 +766,9 @@ export class Editor extends EventEmitter<EditorEventMap> {
763766 this . on ( 'list-definitions-change' , this . options . onListDefinitionsChange ! ) ;
764767 this . on ( 'fonts-resolved' , this . options . onFontsResolved ! ) ;
765768 this . on ( 'exception' , this . options . onException ! ) ;
769+ this . on ( 'pointerDown' , this . options . onPointerDown ! ) ;
770+ this . on ( 'pointerUp' , this . options . onPointerUp ! ) ;
771+ this . on ( 'rightClick' , this . options . onRightClick ! ) ;
766772 }
767773
768774 /**
@@ -1161,6 +1167,9 @@ export class Editor extends EventEmitter<EditorEventMap> {
11611167 this . on ( 'list-definitions-change' , this . options . onListDefinitionsChange ! ) ;
11621168 this . on ( 'fonts-resolved' , this . options . onFontsResolved ! ) ;
11631169 this . on ( 'exception' , this . options . onException ! ) ;
1170+ this . on ( 'pointerDown' , this . options . onPointerDown ! ) ;
1171+ this . on ( 'pointerUp' , this . options . onPointerUp ! ) ;
1172+ this . on ( 'rightClick' , this . options . onRightClick ! ) ;
11641173
11651174 if ( ! shouldMountRenderer ) {
11661175 this . #emitCreateAsync( ) ;
@@ -1237,6 +1246,9 @@ export class Editor extends EventEmitter<EditorEventMap> {
12371246 this . on ( 'commentClick' , this . options . onCommentClicked ! ) ;
12381247 this . on ( 'locked' , this . options . onDocumentLocked ! ) ;
12391248 this . on ( 'list-definitions-change' , this . options . onListDefinitionsChange ! ) ;
1249+ this . on ( 'pointerDown' , this . options . onPointerDown ! ) ;
1250+ this . on ( 'pointerUp' , this . options . onPointerUp ! ) ;
1251+ this . on ( 'rightClick' , this . options . onRightClick ! ) ;
12401252
12411253 if ( ! shouldMountRenderer ) {
12421254 this . #emitCreateAsync( ) ;
0 commit comments