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

Fix: Changing colors while hue is all the way left not working #705

Merged
merged 1 commit into from
Nov 1, 2024

Conversation

iNerdStack
Copy link
Contributor

@iNerdStack iNerdStack commented Nov 1, 2024

Description

What is the purpose of this pull request?

Added activeHue & localColor state & optimized onChange functions to maintain the selected hue value independently from the color's calculated hue, it allows hue persistence even at low saturation levels which solved the bug issue when selecting colors far left.

  1. Separated hue tracking from color state
  2. Always use ActiveHue when creating new colors
  3. Persist hue value during saturation changes
  • New feature
  • Documentation update
  • Bug fix
  • Refactor
  • Release
  • Other

Related: #699

Copy link
Contributor

@Kitenite Kitenite left a comment

Choose a reason for hiding this comment

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

Working great! Thanks for fixing this

@Kitenite Kitenite merged commit 373f6b4 into onlook-dev:main Nov 1, 2024
@Kitenite Kitenite linked an issue Nov 1, 2024 that may be closed by this pull request
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.

[bug] Changing colors while hue is all the way left does not work
2 participants