Gradients bug
HI,
When playing with gradients (after having deleted a "color point"), I got this error on line 84 of tools.js : "Cannot read property 'length' of undefined element"
Very great tool, btw. Should be added to the real Photoshop ;)
thanks! yeah, the gradient editor somehow kills the whole gradient array at some point - didn't figure out why yet. I'm planning on rewriting the whole gradient editor since main features are not yet implemented (see gradienteditor.js from line 62). hopefully on that way i'll figure out the problem.
gradient editor is kinda buggy, it's a great idea to refactor it. I've been bitten by a bug when double clicking on a color stop to change a color. here is the error in my console:
An invalid or illegal string was specified" code: "12
error source line: [Break On This Error] gradient.addColorStop(pos, color);
tools.js (line 195)
Indeed. I'm planning a major rewrite.
(see pointer and middlepoint objects inside gradienteditor.js - they are not yet in use)
On 17.05.2011, at 14:10, [email protected] wrote:
gradient editor is kinda buggy, it's a great idea to refactor it. I've been bitten by a bug when double clicking on a color stop to change a color. here is the error in my console:
An invalid or illegal string was specified" code: "12 error source line: [Break On This Error] gradient.addColorStop(pos, color);
tools.js (line 195)
Reply to this email directly or view it on GitHub: https://github.com/mrflix/LayerStyles/issues/4#comment_1190028
I just tested this great tool and I noticed I can't edit the Gradient at all (I can only change between the presets)
@GittiHab you have to double-click onto the color rectangles under the preview (photoshop behaviour):

@mrflix That's the part that didn't work. I redownloaded it and it now works. Weird.