3
0
Fork 0
mirror of https://github.com/farmOS/farmOS.git synced 2024-02-23 11:37:38 +01:00
farmOS/modules/farm/farm_map/farm_map.default_openlayers_interactions.inc

19 lines
449 B
PHP
Raw Normal View History

<?php
/**
* @file
* farm_map.default_openlayers_interactions.inc
*/
/**
* Implements hook_default_openlayers_interactions_alter().
*/
function farm_map_default_openlayers_interactions_alter(&$interactions) {
// If the default dragpan interaction exists alter it.
if (!empty($interactions['openlayers_interaction_dragpan'])) {
// Set the delay to zero.
$interactions['openlayers_interaction_dragpan']->options['delay'] = 0;
}
}