Using integers for coordinates and mouse delta doesn't work because both dx and dy would and up being either -1 or 1, which only allows diagonal panning.
Keep in mind that I only changed the types in the relevant places, and while this compiles fine, I'm pretty sure it's incomplete, please point out anything else this needs.
Using integers for coordinates and mouse delta doesn't work because both dx and dy would and up being either -1 or 1, which only allows diagonal panning.
Keep in mind that I only changed the types in the relevant places, and while this compiles fine, I'm pretty sure it's incomplete, please point out anything else this needs.