i tried running this using a modal operator which worked fine, but noticed navigation wasnt working :
bpy.ops.gpencil.draw(‘INVOKE_DEFAULT’,mode=‘DRAW’)
added this right underneath and nothing:
if event.type in {‘MIDDLEMOUSE’, ‘WHEELUPMOUSE’, ‘WHEELDOWNMOUSE’}:
#allow navigation
return {‘PASS_THROUGH’}