vengi-voxel / vengi

free and open source voxel art tools - editor, thumbnailer and format converter
http://vengi-voxel.github.io/vengi/
Other
1.05k stars 87 forks source link

IO: fixed natural scrolling, now respects system setting #475

Closed mmckegg closed 1 week ago

mmckegg commented 1 week ago

It turns out event.wheel.direction == SDL_MOUSEWHEEL_FLIPPED is actually telling you that the provided x and y have already been flipped. You can undo this by multiplying by -1 but you don't need to do that if you want to respect the operating system option.

This PR removes the multiplying and now the system setting is preserved