PitPik / colorPicker

Advanced javaScript color picker and color conversion / calculation (rgb, hsv, hsl, hex, cmyk, cmy, XYZ, Lab, alpha, WCAG 2.0, ...)
http://www.dematte.at/colorPicker/
MIT License
570 stars 136 forks source link

Android web views and Chrome bad rendering #55

Open Martin1887 opened 7 years ago

Martin1887 commented 7 years ago

Chrome for Android does not implement completely background-position. Therefore, color picker is rendered bad as can be seen in the attached image. Maybe the problem is not background-position, but I have deduced it because debugging Android web view in Chrome for desktop the color picker is shown correctly in the desktop and bad in the mobile.

I only have tried JavaScript implementation, but I suppose that the issue also happens in jQuery implementation.

Thanks.

colorpicker_android_issue

PitPik commented 7 years ago

Hi @Martin1887 , thanks for this finding. I will look into this as soon as possible. In the meantime,... have you tried tinyColorPicker? It is way smaller and faster and therefore better suited for mobile (in case you use jQuery anyhow). It also supports mobile touch. Other than that I think this problem might be caused by rounding problems. I'll check as soon as possible. Cheers