본 사이트는 여러분의 사용자 경험을 개선하기 위해 유지 보수를 진행하는 동안 기능이 제한됩니다. 도움말로 문제가 해결되지 않고 질문을 하고 싶다면 Twitter의 @FirefoxSupport 및 Reddit의 /r/firefox 채널을 활용하세요.

Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

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

  • 7 답장
  • 2 이 문제를 만남
  • 2 보기
  • 최종 답변자: 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

글쓴이 Haruna 수정일시

모든 댓글 (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

글쓴이 Haruna 수정일시

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.

글쓴이 Haruna 수정일시

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.