Woops, forgot to actually define sxd to None.

This commit is contained in:
Rene Horn 2012-12-08 11:19:51 -06:00
parent 0080c0de78
commit 49fdf10120
1 changed files with 1 additions and 0 deletions

View File

@ -362,6 +362,7 @@ class ScrollView(StencilView):
if vp.width > self.width:
# let's say we want to move over 40 pixels each scroll
d = (vp.width - self.width)
sxd = None
if d != 0:
d = self.scroll_distance / float(d)
if touch.button == 'scrollright':