Skip to content

Rotate Color Picker hue bar #2635

Answered by qwadrox
jonaaldas asked this question in PrimeVue
Sep 4, 2024 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Hi @jonaaldas

I don't think you can do that because the component internally calculates drag only on the Y axis, and it's assuming that 150 is the height of the hue slider.
https://github.com/primefaces/primevue/blob/35646338891494f055fb46928a83fa3aba6a368d/packages/primevue/src/colorpicker/ColorPicker.vue#L105-L111

But it could be a good idea to add vertical slider in a next feature.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@qwadrox
Comment options

@jonaaldas
Comment options

Answer selected by jonaaldas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
2 participants