[Webkit-unassigned] [Bug 124139] Mouse wheel events dropped from non-scrolling iframe on first load

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jan 6 07:44:25 PST 2015


Hal Blackburn <hwtb2 at cam.ac.uk> changed:

           What    |Removed                     |Added
                 CC|                            |hwtb2 at cam.ac.uk

--- Comment #7 from Hal Blackburn <hwtb2 at cam.ac.uk> ---
(In reply to comment #0)
> 1. Load http://bl.ocks.org/mbostock/3680999
> 2. Try scrolling the mouse wheel to zoom the example.
> 3. The whole page will scroll, and the example will not zoom.
> Refreshing the page seems to fix the problem and the example in the iframe
> zooms as intended (while preventing the default behaviour of scrolling the
> page).

(In reply to comment #6)
> It doesn't really help in our case on http://bl.ocks.org/ - because we want
> to disable the scrollbar for any iframe document (i.e. that we don't have
> control over).  Using <iframe style="overflow:hidden"> doesn't work in
> current browsers.

I ran into the same issue today and have a workaround for you. My situation is similar, except I'm providing an iframe with zoomable content for 3rd parties to embed (so I don't have control over the page embedding the content, unlike you). Also, I'm not using scrollable='no' and I still have an issue, except for me it doesn't go away after a refresh.

Here's the workaround.

1. Follow your reproduction steps (loading http://bl.ocks.org/mbostock/3680999, not being able to zoom)
2. Open the Safari dev tools and run the following code:
  var f = function() {};
  document.addEventListener("mousewheel", f);
  document.removeEventListener("mousewheel", f);
3. Now you can zoom the iframe.

Just adding the event listener fixes the issue (even though it's never triggered).

Another method (which I'm using) is to set onmousewheel="" on the iframe.

Hope this helps,

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150106/76a6e7b0/attachment-0002.html>

More information about the webkit-unassigned mailing list