giulioforesto / planets

A 2D plotted planets movement simulator
0 stars 0 forks source link

Re-center on the origin when changing source file #39

Open giulioforesto opened 9 years ago

giulioforesto commented 9 years ago

There seems to be no elegant solution since pmousex and pmousey will always have a value during the file selection process, and this value will always be different from mousex and mousey.

One last almost elegant solution would be to set pmousex to mousex and pmousey to mousey if this is possible...