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 not propagated in backend_kivy.py #70

Open
SStarosielec opened this issue Dec 15, 2020 · 1 comment
Open

scroll direction not propagated in backend_kivy.py #70

SStarosielec opened this issue Dec 15, 2020 · 1 comment

Comments

@SStarosielec
Copy link

I'm sorry I don't know the proper etiquettes to report bugs. I've tracked down a bug that doesn't allow me to process scroll events with proper direction.

In these two lines

if 'button' in touch.profile and touch.button in ("scrollup", "scrolldown",):

if 'button' in touch.profile and touch.button in ("scrollup", "scrolldown",):

if 'button' in touch.profile and touch.button in ("scrollup", "scrolldown",):
                self.scroll_event(x, y, 5, guiEvent=None)

the scroll direction is encoded in the step size sign, but both directions are set to +5.

That conflicts with the convention in "backend_bases.py" L1775

        if step >= 0:
            self._button = 'up'
        else:
            self._button = 'down'

I fixed my local copy, but not sure how to proceed on github.

@mandomal
Copy link

I've had this same issue. I'm not completely clear on how you fixed it. Could you elaborate what changes you made?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants