...

View Full Version : Canvas problems on touch devices



johnsmith153
03-02-2012, 09:35 AM
I am using this: http://www.crowdsavings.com/open-source/drawbox (http://page-test.co.uk/jquery.drawbox.js is the main JS file).

It works fine on desktop browsers, but there is an issue on every Touch mobile phone I have tried. When you draw on the canvas and then go to click a button off the canvas, it doesn't work. You need to touch off the canvas and then the button.

So using the demo above, if you draw on the canvas and then click the 'Clear Canvas' button, it doesn't work and you have to press it again. I have tried setting focus on the body and also detecting what the focus is when a touch action is performed, but no luck. I know the entire screen is responsive to touch and mouse events, where I would have thought it best to just make the canvas section respond to touch/mouse events.

johnsmith153
03-02-2012, 06:41 PM
Any idea?

Nobody seems to be able to do this.

Is it not possible, something that can't be done?

johnsmith153
03-03-2012, 04:16 AM
Could anybody maybe point me in the right direction?

I have spent about 10 hours of research, posting on forums etc. and I just can;t find a solution.

Philip M
03-03-2012, 08:51 AM
Could anybody maybe point me in the right direction?

I have spent about 10 hours of research, posting on forums etc. and I just can;t find a solution.

That suggests that, as you say, it is not possible, something that can't be done. Certainly I have no idea. :o



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum