I wonder if someone at Wick could pick this up, because it’s a real headache for me at the moment.
You don’t seem to be able to capture mouse events in an iframe. e.g. this doesn’t work
<script>
const frameObj = document.getElementById('simFrame');
frameObj.contentDocument.addEventListener('wheel', function(event) {
console.log(event);
}, false);
</script>
And you can’t seem to capture the wheel even in the actual Wick document, so this doesn’t work either
window.document.addEventListener('wheel', function(event) {
//console.log(event);
event.preventDefault();
event.stopPropagation();
}, {passive:false});
window.document.body.addEventListener('wheel', function(event) {
//console.log(event);
event.preventDefault();
event.stopPropagation();
}, {passive:false});
document.addEventListener('wheel', function(event) {
//console.log(event);
event.preventDefault();
event.stopPropagation();
}, {passive:false});
because I still get this error
VM60:13 [Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive. See https://www.chromestatus.com/features/6662647093133312