community
community copied to clipboard
Scroll direction reporting is inversed
Scrolling down with the mouse wheel will give us <MouseMotionEvent button="scrollup".
Example:
from kivy.app import App
from kivy.lang import Builder
from kivy.core.window import Window
from kivy.uix.boxlayout import BoxLayout
class Test(BoxLayout):
def __init__(self, **kwargs):
super(Test, self).__init__(**kwargs)
Window.bind(on_touch_down=self.window_on_touch_down)
def window_on_touch_down(self, *args):
print(args)
# scrolling the wheel down will give <MouseMotionEvent button="scrollup"
class TestApp(App):
def build(self):
return Test()
if __name__ == '__main__':
TestApp().run()
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
This seems to be a general issue where the scroll up and down were flipped. However, currently scrollview and all other widgets use them as they are. So flipping them back will break all these widgets.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
having this issue with Mapview flower on windows, when scrolling down ( pushing the mouse wheel ) wanting to decrease zoom - getting a mixture og scrollup and down. the other direction works fine.
to recreate - Just use the map.py example from the Mapview flower. on windows with python. put a breakpoint to see the event in view.py line 651
Confirming still in Kivy 2.2.1