<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ofsilvers</author_name>
  <author_url>https://blog.hatena.ne.jp/ofsilvers/</author_url>
  <blog_title>しるてく</blog_title>
  <blog_url>https://ofsilvers.hateblo.jp/</blog_url>
  <categories>
    <anon>android</anon>
    <anon>javascript</anon>
  </categories>
  <description>あまり検証していないのでメモ書き程度で。 余裕があれば、ちゃんとDEMO用意したいところ。 問題 iframe内でJSを使って動的にiframeの内容物の高さを変更したときに、Galaxy S2（以外もあるかも）で画面をタップすると、高さが変わる前にその位置にあった要素をタップした扱いになってしまう。 確認 とりあえずタップした位置をJSで取得してその位置にマークつけて確認。 こんな感じ。 javascript // debug用 $(document).on('click', '#wrapper', function(e) { $('#tap-point').css({ top: e.pag…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fofsilvers.hateblo.jp%2Fentry%2Fdynamic-adjust-iframe-height&quot; title=&quot;Galaxy S2でiframe内の高さを動的に変えるとタップ位置がおかしくなる - しるてく&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2013-05-23 15:37:39</published>
  <title>Galaxy S2でiframe内の高さを動的に変えるとタップ位置がおかしくなる</title>
  <type>rich</type>
  <url>https://ofsilvers.hateblo.jp/entry/dynamic-adjust-iframe-height</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
