Renamed simulateClick to clickOnTap
This commit is contained in:
parent
a3f7eb0b3c
commit
e87c8c9e1e
6
dist/iwmlib.js
vendored
6
dist/iwmlib.js
vendored
@ -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
6
dist/iwmlib.pixi.js
vendored
@ -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) {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user