view.js: Several Layout Bugs
There are many bugs in the layout behavior (basically the tab containers).
Swipe gestures aren’t detected in some cases
and crazy border/padding issues at the top occur when swiping too fast.
Fix along #830.
(from redmine: issue id 831, created on 2012-02-21 by root, closed on 2012-04-18)