• ***
  • 121 posts
Scroll in Desktop only with Ctrl key
« on: June 26, 2018, 01:33:35 PM »
Hello, how can I do so that when I mouse over the map with the scroll wheel, the map will not move and I can do it with the Ctrl key ?. I leave the official information of google maps, but it has not worked ...



MB Themes

Re: Scroll in Desktop only with Ctrl key
« Reply #1 on: June 26, 2018, 02:51:27 PM »
It's generated by google maps api itself.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

Marked as best answer by frosticek on July 28, 2018, 12:11:30 AM


  • ***
  • 121 posts
Re: Scroll in Desktop only with Ctrl key
« Reply #2 on: July 27, 2018, 09:07:17 PM »
In oc-content\plugins\listings_map.php

    var myOptions = {
      minZoom: 2,
      maxZoom: 16,
      center: { lat: center_lat, lng: center_long},
      mapTypeId: google.maps.MapTypeId.<?php echo $map_type; ?>,
      navigationControl: false,
      mapTypeControl: true,
      scaleControl: true,
      fullscreenControl: true,
      gestureHandling: 'cooperative'

So when you scroll over the map, it does not zoom, it keeps scrolling the page.
If you want to zoom, you must press the Ctrl key.