-
Hi all I want to rotate the huebar to scroll from left to right instead of top to bottom like the default behaviour. If anybody knows how to do it please let me know. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
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. But it could be a good idea to add vertical slider in a next feature. |
Beta Was this translation helpful? Give feedback.
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.