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

Refactor Range Controller #90

Merged
merged 2 commits into from
Jan 27, 2025
Merged

Conversation

mauriciofierrom
Copy link
Owner

Extract zoom-related functionality from the Range Controller and handle outgoing/incoming events better:

The missing bind prevents the function from being able to call dispatch
since the this isn't the player controller.
- Extract Zoom tracking functionality to a ZoomManager class
- Move events related to zoom addition/removal from the Range Controller
  to the Zoom controller to drive zoom changes via the ZoomManager
- Unify Range's dispatch events to one event called `rangeInputUpdated`
  which can be reacted to by interested controllers. Actions in the
  respective controller elements are updated.
- Update the Range Controller tests to include the zoom outlet it now
  requires. The specs are left largely as they were and some tests are
  moved to Zoom Manager tests
@mauriciofierrom mauriciofierrom merged commit f94ca46 into main Jan 27, 2025
1 check passed
@mauriciofierrom mauriciofierrom deleted the refactor-range-controller branch January 27, 2025 16:12
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.

1 participant