Renamed simulateClick to clickOnTap

This commit is contained in:
2019-07-05 09:39:01 +02:00
parent a3f7eb0b3c
commit e87c8c9e1e
3 changed files with 9 additions and 9 deletions
+3 -3
View File
@@ -5149,7 +5149,7 @@
width = null, // required
height = null, // required
resizable = false,
simulateClick = false,
clickOnTap = false,
verbose = true,
onResize = null,
touchAction = 'none',
@@ -5200,7 +5200,7 @@
this.height = height;
this.throwVisibility = Math.min(width, height, throwVisibility);
this.container = container;
this.simulateClick = simulateClick;
this.clickOnTap = clickOnTap;
this.scale = startScale;
this.rotationDegrees = this.startRotationDegrees;
this.transformOrigin = transformOrigin;
@@ -5406,7 +5406,7 @@
}
onTap(event, interaction, point) {
if (this.simulateClick) {
if (this.clickOnTap) {
let p = Points.fromPageToNode(this.element, point);
let element = document.elementFromPoint(p.x, p.y);
if (element != null) {
+3 -3
View File
@@ -6920,7 +6920,7 @@
width = null, // required
height = null, // required
resizable = false,
simulateClick = false,
clickOnTap = false,
verbose = true,
onResize = null,
touchAction = 'none',
@@ -6971,7 +6971,7 @@
this.height = height;
this.throwVisibility = Math.min(width, height, throwVisibility);
this.container = container;
this.simulateClick = simulateClick;
this.clickOnTap = clickOnTap;
this.scale = startScale;
this.rotationDegrees = this.startRotationDegrees;
this.transformOrigin = transformOrigin;
@@ -7177,7 +7177,7 @@
}
onTap(event, interaction, point) {
if (this.simulateClick) {
if (this.clickOnTap) {
let p = Points.fromPageToNode(this.element, point);
let element = document.elementFromPoint(p.x, p.y);
if (element != null) {