membrane

Ben Sless 2023-03-10T08:59:56.441739Z

Maybe I'm missing something trivial, how do I set mouse sensitivity for scroll area?

phronmophobic 2023-03-10T09:02:58.440169Z

event bubbling!

phronmophobic 2023-03-10T09:03:09.461339Z

one sec, I can get you a snippet

phronmophobic 2023-03-10T09:03:45.674129Z

I guess you're trying to set sensitivity for the for whole app?

phronmophobic 2023-03-10T09:04:59.830789Z

https://clojurians.slack.com/archives/CVB8K7V50/p1634460060134300?thread_ts=1634457131.129600&cid=CVB8K7V50 I guess I still haven't totally fixed it yet.

phronmophobic 2023-03-10T09:05:36.329759Z

but this workaround still works. If you just put fix-scroll to wrap the top element, it should fix it for all the child elements.

Ben Sless 2023-03-10T09:19:20.860149Z

👍

Ben Sless 2023-03-10T10:15:28.189089Z

It's really worth adding a sensitivity setting to the scroll view

phronmophobic 2023-03-10T18:16:54.854359Z

Do you change your sensitivity settings for your browser? I assume there's some OS-dependent API that can be checked to try and match user settings.

Ben Sless 2023-03-10T18:26:13.844999Z

No, but I do change them in games

phronmophobic 2023-03-10T18:26:56.722039Z

interesting. another idea is to make it a parameter you can pass to the graphics backend

Ben Sless 2023-03-10T18:28:07.722789Z

Can it be changed in a running process?

phronmophobic 2023-03-10T18:29:11.078439Z

in theory. all the options for graphics backend are currently static.

phronmophobic 2023-03-10T18:30:08.043499Z

the parameter would end up in this part of the code, https://github.com/phronmophobic/membrane/blob/master/src/membrane/skia.clj#L1461

phronmophobic 2023-03-10T18:31:00.868399Z

ideally, I'd like to take apart all the backend pieces to make it easier to compose things.

phronmophobic 2023-03-10T18:35:31.784529Z

Since I don't really know what the answer is, I created a discussion (as opposed to an issue) on github for me to track this, https://github.com/phronmophobic/membrane/discussions/66#discussioncomment-5270955