I've implemented a Javascript scroller class on a website that seamlessly adds a scrollbar to predefined elements with overflowing content. The client now wants to include an iframe in one of these elements to add interactive content easily. Despite my reservations about iframes, I'm just a subcontractor on this project and have limited influence.
Thankfully, the iframe's content is sourced from the same domain, allowing me to resize the iframe once the content loads and trigger the Javascript scrollbar. Everything works flawlessly in Chrome, but in Internet Explorer and Firefox, the iframe appears to capture mouse events as soon as the cursor hovers over it. As a result, the mousewheel event stops working. While scrolling by dragging the handle or clicking on the track still functions, using the mousewheel does not register any action - the event isn't even triggered.
I've noticed others facing similar issues but haven't come across a suitable workaround. Does anyone have any suggestions?
For reference, here's the Scroll class:
Any assistance will be greatly appreciated!