wpsl_gesture_handling

  1. Description
  2. Parameters
  3. Usage
  4. Changelog
  5. Source File

Description

This filter allows you to set the value for the gesture handling option. This determines how Google Maps handles the user swiping the map on a mobile device.

Parameters

$handling - (string) How to handle the dragging of the map. Defaults to 'auto'.

Usage

This code shows how to change the swiping behavior from auto to greedy.

If it’s set to greedy, then the user can use both one and two fingers to swipe the map around. Other accepted values are cooperative, none and auto  (default).

You can read more about the different options in the gesture handling documentation.

Changelog

Since 2.2.8

Source File

This filter is located in /frontend/class-frontend.php

Placement

The code needs to be placed in the functions.php file inside your active theme folder.