Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scroll direction reporting is inversed #2070

Open
ghost opened this issue Apr 12, 2014 · 4 comments
Open

Scroll direction reporting is inversed #2070

ghost opened this issue Apr 12, 2014 · 4 comments
Labels
Component: input kivy/input Notes: API-break API was broken with backwards incompatibality Status: Confirmed Confirmed as real issue Type: Bug A bug or something not working as intended

Comments

@ghost
Copy link

ghost commented Apr 12, 2014

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.

@matham
Copy link
Member

matham commented Apr 18, 2014

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.

@dessant dessant added this to the 2.0.0 milestone Nov 9, 2014
@dessant dessant added the Notes: API-break API was broken with backwards incompatibality label Jan 6, 2016
@dessant dessant modified the milestones: 2.0, 2.0.0 Jan 6, 2016
@stale
Copy link

stale bot commented Oct 7, 2017

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 stale bot added the stale label Oct 7, 2017
@dessant dessant added the Status: Confirmed Confirmed as real issue label Oct 8, 2017
@stale stale bot removed the stale label Oct 8, 2017
@matham matham removed this from the 2.0.0 milestone Oct 28, 2020
@Irapalti
Copy link

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

@Julian-O
Copy link
Contributor

Confirming still in Kivy 2.2.1

@Julian-O Julian-O added Component: input kivy/input Type: Bug A bug or something not working as intended labels Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: input kivy/input Notes: API-break API was broken with backwards incompatibality Status: Confirmed Confirmed as real issue Type: Bug A bug or something not working as intended
Projects
None yet
Development

No branches or pull requests

4 participants