pIvan / ngx-color-picker

Pure Angular color picker library.
MIT License
96 stars 16 forks source link

Compat color picker with horizontal hue bar #68

Closed genemars closed 1 year ago

genemars commented 1 year ago

Using the picker in a Material UI dialog, when sliding the vertical hue bar can sometimes trigger the "pull down to refresh" functionality of the browser even if overscroll-behavior: contain!important; is set. So as a possible solution it would be nice to have an attribute to set the hue bar to horizontal, since there is already such attribute for the stand-alone hue-component.

Screenshot_20230204-210101264

pIvan commented 1 year ago

Hi @genemars, I plan to make some changes this week.

genemars commented 1 year ago

Looking forward to try next release then =)

pIvan commented 1 year ago

Hi @genemars did you tried touch-action property? Will that be better solution for you? Same problem is with saturation and hue components

genemars commented 1 year ago

Hi @pIvan thanks for the hint, I added this:

compact-picker {
  touch-action: none;
}

and it did the trick =)