Bug fix: Gesture don't work
MODIFY
plugin.xml
plugin.xml
<?xml version='1.0' encoding='utf-8'?>
-<plugin id="cordova-plugin-googlemaps" version="2.1.2-beta-20171109-1243" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
+<plugin id="cordova-plugin-googlemaps" version="2.1.2-beta-20171113-1147" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<name>cordova-plugin-googlemaps</name>
<js-module name="BaseClass" src="www/BaseClass.js">
<runs />

MODIFY
www/Common.js
www/Common.js
@@ -239,18 +239,20 @@ function shouldWatchByNative(node) {
}
var tagName = node.tagName.toLowerCase();
- if (ignoreTags.indexOf(tagName) == -1) {
+ if (ignoreTags.indexOf(tagName) > -1) {
+ return false;
+ }
var classNames = (node.className || "").split(" ");
+ if (classNames.indexOf("_gmaps_cdv_") > -1) {
+ return true;
+ }
var matches = classNames.filter(function(clsName) {
return ignoreClasses.indexOf(clsName) !== -1;
});
if (matches && matches.length > 0) {
return false;
}
- } else {
- return false;
- }
var visibilityCSS = getStyle(node, 'visibility');
var displayCSS = getStyle(node, 'display');
@@ -259,9 +261,7 @@ function shouldWatchByNative(node) {
opacityCSS = /^[\d.]+$/.test(opacityCSS + "") ? opacityCSS : 1;
var clickableSize = (
node.offsetHeight > 0 && node.offsetWidth > 0 ||
- node.clientHeight > 0 && node.clientWidth > 0 ||
- node.clientHeight === 0 && node.clientWidth === 0 &&
- node.className.indexOf("_gmaps_cdv_") > -1);
+ node.clientHeight > 0 && node.clientWidth > 0);
return displayCSS !== "none" &&
opacityCSS > 0 && visibilityCSS !== "hidden" &&
clickableSize && pointerEventsCSS !== "none";

Bug fix: Gesture don't work #1868