1. A concise explanation of the problem you’re experiencing.
i im finding solution to pass click event from iframe to cesium viewer
2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.
in my webpage, i put an iframe element over the cesium container ,
and the iframe element is 100% cover the cesium container, 80% of the iframe is transpanrent and that is where need to pass through mouse event
the interface****dispatchEvent in the code below can trigger the click event of window ,but cesium viewer do not recerive it。
i have try the css pointer-events:none ,but it will disable all the click of the element inside of the iframe and set the div’s in the iframe to pointer-events:all is not work too
var event = document.createEvent(‘MouseEvents’);
event.initMouseEvent(‘click’, true, true, window, e.detail, e.screenX, e.screenY, e.clientX, e.clientY,
e.ctrlKey, e.altKey, e.shiftKey, e.metaKey,
e.button, e.relatedTarget);
window.dispatchEvent(event);
3. Context. Why do you need to do this? We might know a better way to accomplish your goal.
odd and complex demand of our production design,and the iframe is the easiest way to do it
4. The Cesium version you’re using, your operating system and browser.
cesium:1.43.0
os:windows 10
browser:chrome 70
ps:this is my first time to ask a question in english , sorry for my bad english