30 Mar 2012 5:20 AM #1
Image manipulation Pixastic: Element not found
I am creating an image viewer with the possibility to put the image into black and white. The image manipulation is preformed by the Pixastic library with some added features of my own. Basically it takes the img and replaces it with a canvas element with a representation off the adjusted image.
Pixastic also provides a revert function that will put the img back instead of the canvas.
My code works perfectly when I press the button. The canvas is created and the black and white image is shown. Now when i move my mouse and press the button again the manipulation is reverted just like intended.
The problem appears when i don't move my mouse and press the button the second time. My function is called but the fields i changed in my function to set is to black and white are still the values they had before the first click.
When I move my mouse between clicks this problem doesn't exist.
Has anyone any ideas?
30 Mar 2012 12:08 PM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
So you are doing something that requires something that the 2nd button click triggers?Mitchell Simoens @LikelyMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services email@example.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.
31 Mar 2012 1:27 AM #3
I maipulate my image in the first click. With a second click it should undo the maipulation from the first. But when I click the second time it looks like the first click never happend.