Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jquery-ui/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery ui jquery UI对话框中的Google地图不随滚动移动(仅限Chrome)_Jquery Ui_Google Maps_Google Chrome - Fatal编程技术网

Jquery ui jquery UI对话框中的Google地图不随滚动移动(仅限Chrome)

Jquery ui jquery UI对话框中的Google地图不随滚动移动(仅限Chrome),jquery-ui,google-maps,google-chrome,Jquery Ui,Google Maps,Google Chrome,我有一个jQueryUI对话框,其中包含一个google地图。在Chrome中,当您在鼠标上移动滚轮时,地图不会随着对话框的其余部分向下移动,对话框的部分开始消失 如果我用谷歌地图删除div并滚动鼠标,对话框将保持在屏幕中央,而背景只会移动 这在Firefox或IE中不会发生 有什么办法可以调试这个问题吗?这对我很有帮助,我已将它添加到初始化函数中: var href = window.location.href; if (jQuery.browser.webkit &&

我有一个jQueryUI对话框,其中包含一个google地图。在Chrome中,当您在鼠标上移动滚轮时,地图不会随着对话框的其余部分向下移动,对话框的部分开始消失

如果我用谷歌地图删除div并滚动鼠标,对话框将保持在屏幕中央,而背景只会移动

这在Firefox或IE中不会发生


有什么办法可以调试这个问题吗?

这对我很有帮助,我已将它添加到初始化函数中:

var href = window.location.href;
    if (jQuery.browser.webkit && href.search("maps.google") > 0) {
    var childs = document.getElementById("map").childNodes;
    for (var i = 0, l = childs.length; i < l; i++) {
        childs[i].addEventListener("mousewheel", function () { return false; }, false);
    }
}
var href=window.location.href;
如果(jQuery.browser.webkit&&href.search(“maps.google”)>0){
var childs=document.getElementById(“map”).childNodes;
for(变量i=0,l=childs.length;i
我删除了=)google.maps.InfoWindow