Skip to content

scroll direction not propagated in backend_kivy.py #70

Open
@SStarosielec

Description

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions