ios - scroll along with page when touch on I frame. (in apple device it is not working) -


when touch frame , scroll scroll along page need scroll contain can (scrolling on apple device not working in android device, working charmingly).

according apple ios mantra, should possible scroll contents of iframe dragging 2 fingers.

i-frame code

/// video url split var url = result[i].image_url;  if(url.indexof('?v=') > -1) {   var split = result[i].image_url.split('?v=');   var code = split[1].split('&');   url = "http://www.youtube.com/embed/" + code[0]; } else if(url.indexof('/v/') > -1) {     var split = result[i].image_url.split('/v/');     // var code = split[0] + '/embed/' + split[1];     url = "http://www.youtube.com/embed/" + split[1];     }  html += "<iframe width='100%' height='500'  src='"+ url +"' allowfullscreen='' frameborder='0'></iframe>"; html += "</div>" // html += "</div><div class='home-box-ttl'>" + result[i].title + "</div>" } else { html += "<div class='marquee_single'>" html += "<a href='" + result[i].daily_pill_url + "'>"; console.log(result[i]); html += "<img id='" +  result[i].op_ed_image_id + "' alt ='" +  $alt[i]  + "' title='" + $title[i] + "' width='100%' height='500' style='display:block' src='" + result[i].image_url + "'  >"; html += "</a></div>" } } 


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -