Skip to content

Conversation

@FireChickenProductivity
Copy link
Contributor

@FireChickenProductivity FireChickenProductivity commented Oct 8, 2025

Simplify the continuous scrolling code with better state management.

@FireChickenProductivity FireChickenProductivity marked this pull request as ready for review October 25, 2025 15:28
__slots__ = ("_scroll_dir", "_is_vertical", "_direction_constant")

def __init__(self):
self._scroll_dir: Literal[-1, 1] = 1
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would recommend that you just call set_direction here.

RIGHT = auto()


class ScrollingDirection:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
class ScrollingDirection:
class Scroller:

then this will free up ScrollingDirection for the enum.

@nriley
Copy link
Collaborator

nriley commented Oct 25, 2025

From the community backlog session — code looks in good shape, but we would like some additional testing!

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

Successfully merging this pull request may close these issues.

2 participants