Fix #110848: Trackpad: Allow changing the speed while fly navigating #110930

Open
YimingWu wants to merge 5 commits from ChengduLittleA/blender:fix-110848 into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.

5 Commits

Author SHA1 Message Date
YimingWu cdc8290583 include FLY_MODAL_SPEED 2023-08-19 16:30:25 +08:00
YimingWu dabae75b0d Remove unecessary files 2023-08-19 16:20:57 +08:00
YimingWu 1ab8448c71 Misunderstood UI_SCALE_FAC, correcting. 2023-08-09 22:12:33 +08:00
YimingWu 840d38731c Use `U.scale_factor / UI_SCALE_FAC` to replace `U.dpi_fac` 2023-08-09 10:20:43 +08:00
YimingWu 51cda19c8f Fix #110848: Trackpad: Allow changing the speed while fly navigating
The code is already here, it was just lost during refactoring earlier.

This feature was added in rB4737e08cb9a5 and in rB3064da1200a9
keymap was lost, just because it wasn't added to the fly_modal_keymap
initially. This patch just adds FLY_MODAL_SPEED to modal map
so it can be selected in the keymap.

Also replace 'delta' with proper 'absolute delta'
so that the upward movement always increases the speed,
regardless of the Natural Scroll Direction preference.

This patch was originally authored by Yevgeny Makarov (@jenkm) as
https://archive.blender.org/developer/D9641 , now porting this as a PR.
2023-08-08 21:42:43 +08:00