Nice job. Consider allowing the use of a key (Z, spacebar, etc) in addition to the mouse.
Related but I played a similar orbital minigame a while back on Itch.io which has a bit of a 2D Mario Galaxy feel to it as well.
https://danceswithpixels.itch.io/orbital-slingshot