title: How to add the pan tool within the iframe?
body: <p>i just want to add a pan tool within the " iframe " ,
  and i tried by <a href="http://rob--w.github.io/grab-to-pan.js/demo.html" rel="nofollow noreferrer">this demo</a>
  but I can't able to make a pan tool within the iframe.
  can anyone give any suggestions regarding this?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>document.getElementById('activate-g2p').onchange = function () {
      if (this.checked) g2p.activate();
      else g2p.deactivate();
  };
  
  var scrollableContainer = document.getElementById('scrollable-container');
  var g2p = new GrabToPan({
      element: scrollableContainer, // required
      onActiveChanged: function (isActive) { // optional
          if (window.console) { // IE doesn't define console unless the devtools are open
              console.log('Grab-to-pan is ' + (isActive ? 'activated' : 'deactivated'));
          }
      }
  });
  
  g2p.activate();</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
  }
  
  html,
  body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
  }
  
  .scrollable {
    overflow: auto;
    width: 100%;
    height: 100%;
    max-width: 300px;
    max-height: 300px;
    background-color: #EEE;
  }
  
  .filler {
    width: 200%;
    font-size: 100px;
    /* I don't want to type a huge wall of Lorem ipsum */
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;link href="http://rob--w.github.io/grab-to-pan.js/grab-to-pan.css" rel="stylesheet" /&gt;
  &lt;script src="http://rob--w.github.io/grab-to-pan.js/grab-to-pan.js"&gt;&lt;/script&gt;
  
  &lt;label&gt;&lt;input type="checkbox" id="activate-g2p" checked&gt; Activate Grab to Pan&lt;/label&gt;
  &lt;div class="scrollable" id="scrollable-container"&gt;
    &lt;div class="filler"&gt;
      Grab to pan - Grab this section with your mouse, and move your mouse around to pan the content.
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>here I want to add one iframe ex:www.w3schools.com
  and under this link, I need a pan tool(hand).</p>
  
  <p>Thank you</p>