scrollview: fix initial mousewheel scrolling. closes #645

This commit is contained in:
Mathieu Virbel 2012-09-02 12:53:30 +02:00
parent 41e994e263
commit cb3f1f5aa4
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ class ScrollView(StencilView):
def __init__(self, **kwargs): def __init__(self, **kwargs):
self._touch = False self._touch = False
self._tdx = self._tdy = self._ts = self._tsn = 0 self._tdx = self._tdy = self._ts = self._tsn = 0
self._scroll_y_mouse = 0 self._scroll_y_mouse = 1
super(ScrollView, self).__init__(**kwargs) super(ScrollView, self).__init__(**kwargs)
self.bind(scroll_x=self.update_from_scroll, self.bind(scroll_x=self.update_from_scroll,
scroll_y=self.update_from_scroll, scroll_y=self.update_from_scroll,