HTML 5 Canvas Touch Events Rotate Scale

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dj12345
    New Member
    • Jan 2008
    • 14

    HTML 5 Canvas Touch Events Rotate Scale

    Hi,
    I am creating an Image creator using canvas HTML5. In which I am drawing images inside the canvas. You can check the following example for demo.



    What I want is that it should support the Touch Events of IPAD. For this I know I must use events like

    Code:
    canvas.addEventListener('touchstart', drawOnIpadStart, false);
    canvas.addEventListener('touchmove', drawOnIpadMove, false);
    canvas.addEventListener('touchend', drawOnIpadEnd, false);
    Does anyone know how can I rotate and scale images inside the Canvas using the Touch Events(Multi Touch events) like this

    The SitePen blog gives educational tips for solving big business problems and achieving technical objectives.


    if you see above link example on Iphone, using 2 fingers you can rotates the div.

    What I wanted to rotate the Image inside the Canvas.


    Any help, example appreciated.

    Thanks
Working...