Note that there are some explanatory texts on larger screens.

plurals
  1. POGoogle maps in firefox6 zooms znd scrolls page
    primarykey
    data
    text
    <p>I have problem with Firefox6 (don't know if it also concerns earlier versions). </p> <p>I want to embed Google Map on page, and when page has scrollbars (is longer than viewport) mouse wheel not only zooms map but also scrolls page. I tried to catch mousewheel event and stop propagation but this event isn catchable when cursor os over map. When cursor is over map controls (zoom control, google logo, etc) i can catch event and stop propagation.</p> <p>What is more strange it not happens always. Sometimes page srolls and after few scrolls it stops and mousewheel only zooms map (as expected). Sometimes page doesn't scroll and sometimes it scrolls with zoom all the time. Can't find pattern.</p> <p>Source code is simple:</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;meta http-equiv="content-type" content="text/html; charset=utf-8" /&gt; &lt;title&gt;test&lt;/title&gt; &lt;script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; window.onload = function(){ var latlng = new google.maps.LatLng(52.25, 21.01); mapOptions = { zoom: 12, center: latlng, mapTypeId: google.maps.MapTypeId.ROADMAP, streetViewControl: false, zoomControl:true, mapTypeControl:false }; map = new google.maps.Map(document.getElementById("map_canvas"), mapOptions); } &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;p style="height:500px;"&gt;-lot of text-&lt;/p&gt; &lt;div id="map_canvas" style="width:500px; height:500px;"&gt;&lt;/div&gt; &lt;p style="height:500px;"&gt;-lot of text-&lt;/p&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload