jawa0 / aish3

AI LLM Agent with memories
Apache License 2.0
3 stars 1 forks source link

Make trackpad-scrolling of the canvas faster and feel smoother #87

Open jawa0 opened 3 months ago

jawa0 commented 3 months ago

Currently, the user can scroll the canvas/scene by two-finger dragging on the trackpad. This feels a bit sluggish right now in that the scene doesn't scroll fast enough relative to the amount of dragging.

Figure out what SDL2 mouse event the dragging corresponds to. I think it might be something to do with the scroll wheel. Then make the changes. Start with a value that gives us about a 2x speedup vs what we have now, and we'll adjust this to find a value that feels good. @mentatbot

For context: There's typically a handle_event() function in each GUI control also in the GUI class itself. Have a look at GUI, GUIControl, and GUIContainer's handle_event() functions. Also look for sdl2 mouse wheel events -- I think this is what trackpad drags get mapped to.

jawa0 commented 3 months ago

Please take another look at this @mentatbot

mentatbot[bot] commented 3 months ago

I will start working on this issue