Commit a0b35fa7439866036107957b947a19e2613ced95 Parent: b699769544c82ac50acfcc8395940b09833ac109 Author: mcol <mcol@posteo.net> Date: 2021-01-30 10:51:19 +0000 Committer: mcol <mcol@posteo.net> Committed: 2021-01-30 10:51:19 +0000 factor in zoom when panning desk
src/action.c Modified
@@ -130,8 +130,8 @@ void pan_desk(void *data) { struct desk *desk = wimp.current_desk; struct motion motion = *(struct motion*)data; - double dx = motion.dx; - double dy = motion.dy; + double dx = motion.dx / desk->zoom; + double dy = motion.dy / desk->zoom; if (motion.is_percentage) { struct wlr_box *extents = wlr_output_layout_get_box(wimp.output_layout, NULL);