Renamed simulateClick to clickOnTap

This commit is contained in:
Uwe Oestermeier 2019-07-05 09:39:01 +02:00
parent a3f7eb0b3c
commit e87c8c9e1e
3 changed files with 9 additions and 9 deletions

6
dist/iwmlib.js vendored
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) {

6
dist/iwmlib.pixi.js vendored
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) {

View File

@ -1037,7 +1037,7 @@ export class DOMScatter extends AbstractScatter {
width = null, // required
height = null, // required
resizable = false,
simulateClick = false,
clickOnTap = false,
verbose = true,
onResize = null,
touchAction = 'none',
@ -1088,7 +1088,7 @@ export class DOMScatter extends AbstractScatter {
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
@ -1294,7 +1294,7 @@ export class DOMScatter extends AbstractScatter {
}
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) {