Mobile Safari: Bring your machete

Dave DeSandro

First thing first

Back in 2007

PastryKit

Back in 2007

Native app experience

Handling zoom

H5BP recommends:

<meta name="viewport" content="width=device-width">

Disabling zoom:

<meta name="viewport" content="width=device-width, maximum-scale=1.0">

Uh oh.

Our dilemma

Overwriting practical defaults set in place for a web environment from 5 years ago

In-element scrolling

See toolbars.html

Lame:

 #content {
   overflow-y: scroll;
 }

But wait…

Better solution, using padding, no overflow-scrolling.

No clever scrolling

Multi-touch events

event looks like

event: {
  touches: [],
  changedTouches: [],
  targetTouches: []
}

Each touches array has touches, each of which have:

Let’s make a button

See trendy-button.html

Take-aways

We need champions

Find a niche. Own it.

Beercamp Tonight

nclud welcomes you!

Extra time

Code saves lives!