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

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -