Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 7. Exploring Interactivity > Drawing Interactively to the Canvas

7.2. Drawing Interactively to the Canvas

Now that we at least know how to create a simple canvas, let's look at how we can do that interactively to create some unique mobile web apps. While jumping in and working with touch events would be great, it's worth taking a little time to investigate how this is done using mouse events first—given that this is probably more familiar to us.

Once we have the interactivity built using mouse events in a desktop browser, we will then explore how similar functionality would be implemented using touch events. By working with mouse events in the first instance and then moving to touch events, we will gain an understanding of some important differences between mobile interactivity and desktop interactivity.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint