Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Need someone with an Android tablet for a quick test

  • 19-04-2014 06:59PM
    #1
    Registered Users, Registered Users 2 Posts: 106 ✭✭


    Hey

    I'm making some websites I have touch and HTML5 canvas-enabled, so decided to do a blog post about the process.

    I have a little touchscreen sketchpad put together as an example, however I'm not sure if it works ok on Android (have tested on iPad).

    If anyone can give it a quick try on an Android tablet, that would be great, it's here.

    Thanks!


Comments

  • Registered Users, Registered Users 2 Posts: 253 ✭✭Super hoop


    works grand


  • Registered Users, Registered Users 2 Posts: 106 ✭✭Moonstar


    Great, thanks!


  • Registered Users, Registered Users 2 Posts: 106 ✭✭Moonstar


    Here's the finished article if anyone is interested,

    A Simple Touchscreen Sketchpad using Javascript and HTML5


  • Registered Users, Registered Users 2 Posts: 1,929 ✭✭✭PrzemoF


    Thanks for sharing!

    A small comment: drawing out of the sketch area flips cursor to "draw all the time" mode until the next click. mouseDown stays at 1 if button is released outside of the sketchpad area.


  • Registered Users, Registered Users 2 Posts: 106 ✭✭Moonstar


    Oops!

    I was wondering what was going on, since the mouseup event was attached to the document.body.

    Then I realised that I had the examples within an iframe in the article itself - in that case the mouseup listener attached to document.body will only trigger within that iframe, not the entire page.

    Changed it to attach to "window" instead. Thanks!


  • Advertisement
Advertisement