Fix 119

Fixes both bugs of #119.
I also put the "coordinates -> frame" code into a separate method because it's used in mouseMove and mouseClick (exact duplicate), and it was getting kinda complicated.
I'm "pretty sure" that this mapping now works (zoomed in all the way to test the transitions).