Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Tìm hiểu thêm

Mouse scroll zoom not working google maps in Firefox...it still works in other browsers

  • 7 trả lời
  • 2 gặp vấn đề này
  • 2 lượt xem
  • Trả lời mới nhất được viết bởi Haruna

more options

I've found all these suggestions to use some sort of code to edit some sort of script but I have no idea how to do this. I managed to open the 'Scrachpad' thing and enter the script,then saved it to the desktop...but then what do you do? Does anyone know how to bring back the simple old mouse scroll function in Maps on Firefox.

https://developers.google.com/maps/documentation/javascript/interaction#demos

I've found all these suggestions to use some sort of code to edit some sort of script but I have no idea how to do this. I managed to open the 'Scrachpad' thing and enter the script,then saved it to the desktop...but then what do you do? Does anyone know how to bring back the simple old mouse scroll function in Maps on Firefox. https://developers.google.com/maps/documentation/javascript/interaction#demos

Được chỉnh sửa bởi Haruna vào

Tất cả các câu trả lời (7)

more options

I have this problem, too. Firefox with the support of Mozilla, your problem will be solved automatically. Thank you.

more options

Hi Haruna, you linked to a page with 3 different demos. Here's what I see, when testing with a touchpad:

Map #1: Need to hold Ctrl for either panning (moving the map) or zooming

Map #2: Map ignores all attempts at scrolling

Map #3: Map handles all scrolling (pan and zoom)

What behavior did you want? Also, what script did you find?

more options

Hi jscher2000, Ah yes I see. What I want to do is use the mouse's scroll wheel to zoom in and out on Google Maps. It always worked like that before,and I don't have any addons etc that I haven't always had. It works fine in both Edge and IE...it's only FF that somehow stopped doing this. The script they said to use was this...

function initMap() {

       var locationRio = {lat: -22.915, lng: -43.197};
       var map = new google.maps.Map(document.getElementById('map'), {
         zoom: 13,
         center: locationRio,
         gestureHandling: 'greedy'
       });
more options

I can zoom in and out with the + and - zoom controls on the map itself and also with 'ctrl' + mouse wheel...but both of those are just not as good a method as the mouse wheel zoom as far as I'm concerned.

'ctrl' + mouse wheel is sort of the same thing but it's erratic and pretty much unusable compared to just using the mouse wheel by itself

Touchpad pinch zoom on my laptop works as normal...but it's the mouse wheel zoom I want to get back

Được chỉnh sửa bởi Haruna vào

more options

Firefox leaves the decision to the website, so it's strange that you get different behavior in different browsers on the same map.

Google's coding is extremely complex. , I can't see how to switch an existing map from requiring Ctrl to not requiring Ctrl. The code you found would be used in generating a completely new map, which might be necessary (remove and replace).

more options

Thanks a lot,yes I see. Actually this happened once before but I can't remember what I did to fix it! The same thing is happening on both laptop with Windows 10 and pc with Windows 7? Some people on another forum somewhere said to disable 'smooth scrolling' but this didn't work for me,and also to enable some option in Maps,which isn't there as far as I can see.

Được chỉnh sửa bởi Haruna vào

more options

This problem seems to have been caused by an addon called User-Agent Switcher,which I've been using to get the old Twitter layout back. On Maps if I set that to 'overide domain' and to 'default' the mouse wheel zoom function works perfectly again. [or if I just disable that addon altogether it also works]

So for now at least the problem is fixed :)

Thanks again jscher2000.