title: Embedding Ionic in iFrame blocks parent scroll
body: <p>So, I need to embed an Ionic webapp in a webiste (which I already did), the problem now is that when the iFrame gets to the end, the parent site (the one with the iframe tag) won't keep scrolling, only when mouse is outside iFrame area.</p>
  
  <p>The iFrame scrolls, but the parent won't scroll if the mouse is over the iFrame area.</p>
  
  <p>I've tried many things the past days:</p>
  
  <ul>
  <li><code>overscroll-behavior</code></li>
  <li><code>-webkit-overflow-scroll</code></li>
  <li>tried changing <code>.scroll-y</code> class inside <code>IonContent</code>.</li>
  <li>changing iFrame settings many times to different options.</li>
  <li>inspecting site and changing scroll properties.</li>
  </ul>
  
  <p>I've put together a codepen with basic code:</p>
  
  <p>It has some p elements and one iFrame in the middle of the elements, the frame is loading a basic Ionic webapp with only a list, this is the markup used inside Ionic page:</p>
  
  <pre><code>&lt;ion-header&gt;
    &lt;ion-toolbar color="dark"&gt;
      &lt;ion-title&gt;
        Just 5 &lt;strong&gt;p&lt;/strong&gt; tags
      &lt;/ion-title&gt;
    &lt;/ion-toolbar&gt;
  &lt;/ion-header&gt;
  
  &lt;ion-content&gt;
   &lt;p *ngFor="let we of [1,2,3,4,5]" style="color: red;"&gt;
    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse convallis leo risus, eu mattis justo vestibulum eget. Nam pellentesque posuere dui vitae commodo. Integer nec mi tristique enim suscipit viverra. Aliquam erat volutpat. Curabitur tristique et quam non placerat. Mauris tincidunt ipsum augue, ac rhoncus velit condimentum in. Morbi non dictum ex, non tristique magna. Donec posuere, lorem nec porttitor varius, quam neque aliquet metus, imperdiet posuere nunc nulla sit amet mi. Nullam aliquam rhoncus nunc. Nulla sit amet placerat erat, in egestas mauris. Donec ut sagittis dui. Sed porttitor nisl sed cursus semper. Quisque nec viverra eros.
  
    Maecenas commodo lacus eget lorem placerat finibus. Nulla facilisi. Sed faucibus bibendum velit ullamcorper varius. Nulla euismod, orci vitae venenatis ornare, nisi leo euismod massa, pulvinar fermentum est sem eget sapien. Donec convallis nisi eu lacus ullamcorper consectetur in eu orci. Etiam vitae urna varius, lobortis diam eu, varius sem. Fusce volutpat tincidunt lorem ac egestas. Praesent feugiat nisl sed lacinia posuere. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec sit amet metus libero. Proin metus odio, pretium porttitor vulputate vitae, auctor eget nibh. Duis ornare dolor enim, eu hendrerit diam ultrices ac. Maecenas consectetur scelerisque velit, ac suscipit eros lacinia et. Nam in sem tellus. Integer nec lorem ex. Maecenas id consequat neque, a rhoncus diam.
   &lt;/p&gt;
   &lt;/ion-content&gt;
  </code></pre>
  
  <p>And the embeding is done this way:</p>
  
  <pre><code>&lt;div&gt;
    &lt;iframe src="https://parapruebas-f6412.firebaseapp.com/list" height="500" width="100%" frameborder="0" scrolling="yes"&gt;&lt;/iframe&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Here's the codepen with a demo of the problem: <a href="https://codepen.io/Scombr0/pen/QWWRPvY" rel="nofollow noreferrer">https://codepen.io/Scombr0/pen/QWWRPvY</a></p>
  
  <p>The URL where the the Ionic webapp is hosted: <a href="https://parapruebas-f6412.firebaseapp.com/list" rel="nofollow noreferrer">https://parapruebas-f6412.firebaseapp.com/list</a> in case you want to inspect it.</p>
  
  <p>I've ran out of ideas and I think it has something to do with the way Ionic handles scroll events inside its IonContent component. Which I believe it's a Shadow DOM so I cannot change it's behavior.. i'm kinda lost here.</p>
  
  <p>Thanks for your time!</p>