Is it possible to disable scrolling but still allow dragging on the <canvas>
element in iPhone?
Currently, when you drag the <canvas>
, the entire page also scrolls, which is not the desired behavior.
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
<style type="text/css">
body {
overflow: hidden;
width: 100%;
}
</style>
</head>
<body>
<canvas width="320px" height="480px"></canvas>
</body>