bauhaus.c: Tune delta sensitivity for trackpad in Quartz#20701
bauhaus.c: Tune delta sensitivity for trackpad in Quartz#20701MStraeten wants to merge 1 commit intodarktable-org:masterfrom
Conversation
Adjust trackpad/magic mouse sensitivity for Quartz according to former solution in gtk.c fixes: darktable-org#20698
|
@MStraeten: Do we want to do this in The change could be: modified src/bauhaus/bauhaus.c
@@ -3102,6 +3102,11 @@ static void _widget_scroll(GtkEventControllerScroll *controller,
dt_bauhaus_widget_t *w = (dt_bauhaus_widget_t *)widget;
_request_focus(w);
+ #ifdef GDK_WINDOWING_QUARTZ
+ // Reduce raw continuous trackpad/magic mouse delta to match discrete step behavior
+ delta *= 0.02f; // tune: lower = less sensitive
+ #endif
+
if(w->type == DT_BAUHAUS_SLIDER)
{
const gboolean force = darktable.control->element == DT_ACTION_ELEMENT_FORCEThank you for flagging this. I don't have MacOS, so can't test from here. I was worried about that commit re-breaking MacOS scrolling, but had some fantasy that event controllers would have solved this problem. But looking at the code there is no special handling for MacOS. |
|
the result is strange - it seems to be dependent on speed: on slider slow movements doesn't change anything, just fast movements. I have to check other widgets without the fix … |
|
Yes, I think that the fix still isn't quite right. What I know from here (non-MacOS hardware):
It may make sense to write a Even here, it seems like there are wrinkles:
Maybe it's best just to try option 1 and see if it works. I can try to code this as a proof of concept, but can't test! |
|
Thinking about this a bit more: Perhaps the nicest GTK4-friendly way to do this is, in the case of MacOS, to catch the But can think/research more (much later today), and write this if it seems wise. But curious for thoughts there. And also I'm still puzzled by MacOS smooth scroll is so different. |
|
Even fancier idea: |
using keys isn't an issue in this case also not using modifier+scroll in case of masks.
oh yes, tried this, and it's like a fan for color harmonies ;)
feel free to code, i'll test ;) |
Alas!
There's code in #20710 which should fix this. Very curious how it works from there. |
Adjust trackpad/magic mouse sensitivity for Quartz according to former solution in gtk.c
fixes: #20698
@dtorop: any side effects to be expected?