furbrain / tingbot-gui

A graphical user interface for the tingbot
http://tingbot-gui.rtfd.org
Other
4 stars 2 forks source link

Crash on scrolling in popup windows #1

Closed furbrain closed 7 years ago

furbrain commented 8 years ago

Scrolling in a popup menu causes this occasional crash:

File "/usr/local/lib/python2.7/dist-packages/tingbot_gui/scrollarea.py", line 166, in on_touch
self.start_flick(self.get_velocity(self.last_move[-1],self.last_move[0]))
File "/usr/local/lib/python2.7/dist-packages/tingbot_gui/scrollarea.py", line 66, in get_velocity
return [dx/dt,dy/dt]
ZeroDivisionError: float division by zero
furbrain commented 7 years ago

Fixed in https://github.com/furbrain/tingbot-gui/commit/62059fa2920d0172236f877107a4a6395f4af61e