jawa0 / aish3

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

Enhance trackpad-scrolling speed and smoothness for canvas #88

Open mentatbot[bot] opened 4 months ago

mentatbot[bot] commented 4 months ago

Closes #87

jawa0 commented 4 months ago

When I run this, the app starts fine. But, when I drag on the trackpad I get the following error:

Traceback (most recent call last): File "C:\Users\jabaa\Documents\devel\aish3\aish3.py", line 205, in asyncio.run( File "C:\Python312\Lib\asyncio\runners.py", line 194, in run return runner.run(main) ^^^^^^^^^^^^^^^^ File "C:\Python312\Lib\asyncio\runners.py", line 118, in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Python312\Lib\asyncio\base_events.py", line 687, in run_until_complete return future.result() ^^^^^^^^^^^^^^^ File "C:\Users\jabaa\Documents\devel\aish3\aish3.py", line 177, in run gui.draw() File "C:\Users\jabaa\Documents\devel\aish3\gui\gui.py", line 890, in draw self._content.draw() File "C:\Users\jabaa\Documents\devel\aish3\gui\gui_container.py", line 131, in draw vr = self.get_view_rect() ^^^^^^^^^^^^^^^^^^^^ File "C:\Users\jabaa\Documents\devel\aish3\gui\gui_control.py", line 281, in get_view_rect vr = sdl2.SDL_Rect(vx, vy, wr.w, wr.h) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\jabaa\Documents\devel\aish3\venv\Lib\site-packages\sdl2\rect.py", line 83, in init self.x = x ^^^^^^ TypeError: 'float' object cannot be interpreted as an integer

Please fix.