artf / grapick

Easy configurable gradient picker, with no dependencies

Home Page:https://artf.github.io/grapick/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Touch support

av01d opened this issue · comments

Have you tested this on touch devices? On an iPad, it doesn't really work. You can't move the color stops. I see touch events being used in the source code, but they don't seem to work.
Can you please take a look? Grapick is awesome!

Ive played around with this, and though its not immedately apparent, you can move the color handles:
Touch a color handler to select it, its bar turns white. Touch anywhere to move the color handle there.
Touch it again to deselect it. A bit fiddly, but it works. Tested on android chrome.

I've managed to add decent, real, working touch support myself.
Here it is: https://www.dropbox.com/s/s48sp3zdz38wp6i/grapick.js?dl=0
All changes are clearly marked with 'ARJAN' (my name).
Hope you can make some time to adapt those changes in grapick. Thanks!