Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Touch-action semantics with multiple fingers" />
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
  <div class=ancestor>
    <div class='scroller px'>
      <div class='spacer'>pan-x</div>
    </div>
    <div class='scroller py'>
      <div class='spacer'>pan-y</div>
    </div>
    <div class='spacer'>none</div>
  </div>
  <div class='scroller px'>
    <div class='spacer'>pan-x</div>
  </div>
</body>
</html>
 
div {
  margin: 2px;
}
.scroller {
  height: 250px;
  width: 250px;
  overflow: scroll; 
  border: 1px solid blue;
}
.spacer {
  height: 300px;
  width: 300px;
}
.px {
  touch-action: pan-x;
}
.py {
  touch-action: pan-y;
}
.ancestor {
  touch-action: none;
  overflow:scroll;
  border: 1px solid red;
  height: 600px;
  width: 280px;
}
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
rbyerspro
0viewers