ios

Apple & Google: Different Goals by Goondaba

Apple's goal has been to achieve maximum profit from the sale of hardware:

"Apple captured two thirds of available mobile phone profits in Q2"

Success.

 

Google's goal has been to increase the number of eyeballs looking at ads, growing the search market:

"Android takes almost 50% share of worldwide smart phone market"

Success.

 

Everybody wins. I don't see what all the bickering is about.

Method for Detecting Drag Events in the Canvas Element on Touch Devices by Goondaba

I was recently asked about being able to detect a drag event within a Canvas element on a mobile device. By default, if you try dragging on a web page with a canvas element, the entire page will shift and the touch input is lost.

This behavior can be overridden to allow capture of drag events. The basic strategy is to disable the touch events and capture them, and then respond to them manually.

Because the method to capture the touch input uses general Webkit directives, this solution will work on both iOS and Android devices.

You may view the example on your mobile device here

References:

"Touching and Gesturing on the iPhone"

"Canvas Tutorial"