drobilla / ingen

A realtime modular synthesizer and/or effects processor
GNU Affero General Public License v3.0
30 stars 7 forks source link

Place newly created modules directly under the cursor #28

Open samuellwn opened 3 years ago

samuellwn commented 3 years ago

This PR calculates a better position for new modules. The old method could be badly wrong, especially in multi-monitor setups. I only tested on Linux.

samuellwn commented 3 years ago

This doesn't account for zoom. If the graph has been zoomed in or out the position will be inaccurate.

drobilla commented 3 years ago

Thanks, I'll check it out. I had noticed that the module position is wonky sometimes but hadn't looked into it (largely because I'm in the process of rewriting the whole canvas anyway, but that will still be a while...)