community icon indicating copy to clipboard operation
community copied to clipboard

Scroll direction reporting is inversed

Open ghost opened this issue 11 years ago • 3 comments

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.

ghost avatar Apr 12 '14 01:04 ghost

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.

matham avatar Apr 18 '14 21:04 matham

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.

stale[bot] avatar Oct 07 '17 10:10 stale[bot]

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

Irapalti avatar Feb 22 '22 00:02 Irapalti

Confirming still in Kivy 2.2.1

Julian-O avatar Nov 15 '23 04:11 Julian-O