Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialGuy Noda-Bailey
18,837 PointsSimple drawing app on touch screen
Has anyone tried getting this to work on touch devices. So far I've hooked up touchPunch, tried preventing user scrolling and the mobile browser's select behaviors, I've also prevented the mobile browser scroll behaviors and set the screen user scalable to false. But the canvas doesn't respond to any touch events.
anyone out there had any luck?
2 Answers
Rodrigo Muñoz
Courses Plus Student 20,171 PointsIf you are testing the app in your browser then you should emulate the application with any mobile device option.
Check out the Chrome DevTools documentation: https://developer.chrome.com/devtools/docs/mobile-emulation
Guy Noda-Bailey
18,837 PointsThanks Rodrigo, at the moment I'm testing mobile compatibility by using my ipad while traveling for work. Safari and chrome for iOs are a pain in the... umm, neck for testing code changes in websites. I'll check out the mobile emulation when I get home.