Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<title>Touch-action in a rotated div</title>
<style>
  #rotateddiv {
    width: 250px;
    height: 250px;
    border: 1px solid;
    transform: rotate(-90deg);
  }
  #scrollerbox {
    width: 200px;
    height: 150px;
    border: 1px solid;
    background-color: lightgrey;
    margin: 5px;
    overflow: scroll;
    touch-action: pan-y;
  }
  .innerbox {
    width: 250px;
    height: 50px;
    background-color: grey;
    margin: 10px;
  }
</style>
</head>
<body>
  Untransformed document body.
  <div id="rotateddiv">
    Tranformed div should scroll only vertically in local coord system.
    <div id="scrollerbox">
      <div class="innerbox"></div>
      <div class="innerbox"></div>
      <div class="innerbox"></div>
      <div class="innerbox"></div>
      <div class="innerbox"></div>
    </div>
  </div>
</body>
</html>
Output

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

Dismiss x
public
Bin info
mustaqpro
0viewers