javascript - Disable touch on an iframe but keep clicking ability -


i have iframe blocking layer below , dose not let scroll touch in phone , tablet devices. there way disable touch on iframe using it's class name or class name of div holding it?

use css pointer-events disable touch events on element:

iframe {   pointer-events: none; } 

https://developer.mozilla.org/en-us/docs/web/css/pointer-events

jsfiddle example:

http://jsfiddle.net/moogs/eyync6mp/2/


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -