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
|
width = null, // required
|
||||||
height = null, // required
|
height = null, // required
|
||||||
resizable = false,
|
resizable = false,
|
||||||
simulateClick = false,
|
clickOnTap = false,
|
||||||
verbose = true,
|
verbose = true,
|
||||||
onResize = null,
|
onResize = null,
|
||||||
touchAction = 'none',
|
touchAction = 'none',
|
||||||
@ -5200,7 +5200,7 @@
|
|||||||
this.height = height;
|
this.height = height;
|
||||||
this.throwVisibility = Math.min(width, height, throwVisibility);
|
this.throwVisibility = Math.min(width, height, throwVisibility);
|
||||||
this.container = container;
|
this.container = container;
|
||||||
this.simulateClick = simulateClick;
|
this.clickOnTap = clickOnTap;
|
||||||
this.scale = startScale;
|
this.scale = startScale;
|
||||||
this.rotationDegrees = this.startRotationDegrees;
|
this.rotationDegrees = this.startRotationDegrees;
|
||||||
this.transformOrigin = transformOrigin;
|
this.transformOrigin = transformOrigin;
|
||||||
@ -5406,7 +5406,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
onTap(event, interaction, point) {
|
onTap(event, interaction, point) {
|
||||||
if (this.simulateClick) {
|
if (this.clickOnTap) {
|
||||||
let p = Points.fromPageToNode(this.element, point);
|
let p = Points.fromPageToNode(this.element, point);
|
||||||
let element = document.elementFromPoint(p.x, p.y);
|
let element = document.elementFromPoint(p.x, p.y);
|
||||||
if (element != null) {
|
if (element != null) {
|
||||||
|
6
dist/iwmlib.pixi.js
vendored
6
dist/iwmlib.pixi.js
vendored
@ -6920,7 +6920,7 @@
|
|||||||
width = null, // required
|
width = null, // required
|
||||||
height = null, // required
|
height = null, // required
|
||||||
resizable = false,
|
resizable = false,
|
||||||
simulateClick = false,
|
clickOnTap = false,
|
||||||
verbose = true,
|
verbose = true,
|
||||||
onResize = null,
|
onResize = null,
|
||||||
touchAction = 'none',
|
touchAction = 'none',
|
||||||
@ -6971,7 +6971,7 @@
|
|||||||
this.height = height;
|
this.height = height;
|
||||||
this.throwVisibility = Math.min(width, height, throwVisibility);
|
this.throwVisibility = Math.min(width, height, throwVisibility);
|
||||||
this.container = container;
|
this.container = container;
|
||||||
this.simulateClick = simulateClick;
|
this.clickOnTap = clickOnTap;
|
||||||
this.scale = startScale;
|
this.scale = startScale;
|
||||||
this.rotationDegrees = this.startRotationDegrees;
|
this.rotationDegrees = this.startRotationDegrees;
|
||||||
this.transformOrigin = transformOrigin;
|
this.transformOrigin = transformOrigin;
|
||||||
@ -7177,7 +7177,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
onTap(event, interaction, point) {
|
onTap(event, interaction, point) {
|
||||||
if (this.simulateClick) {
|
if (this.clickOnTap) {
|
||||||
let p = Points.fromPageToNode(this.element, point);
|
let p = Points.fromPageToNode(this.element, point);
|
||||||
let element = document.elementFromPoint(p.x, p.y);
|
let element = document.elementFromPoint(p.x, p.y);
|
||||||
if (element != null) {
|
if (element != null) {
|
||||||
|
@ -1037,7 +1037,7 @@ export class DOMScatter extends AbstractScatter {
|
|||||||
width = null, // required
|
width = null, // required
|
||||||
height = null, // required
|
height = null, // required
|
||||||
resizable = false,
|
resizable = false,
|
||||||
simulateClick = false,
|
clickOnTap = false,
|
||||||
verbose = true,
|
verbose = true,
|
||||||
onResize = null,
|
onResize = null,
|
||||||
touchAction = 'none',
|
touchAction = 'none',
|
||||||
@ -1088,7 +1088,7 @@ export class DOMScatter extends AbstractScatter {
|
|||||||
this.height = height
|
this.height = height
|
||||||
this.throwVisibility = Math.min(width, height, throwVisibility)
|
this.throwVisibility = Math.min(width, height, throwVisibility)
|
||||||
this.container = container
|
this.container = container
|
||||||
this.simulateClick = simulateClick
|
this.clickOnTap = clickOnTap
|
||||||
this.scale = startScale
|
this.scale = startScale
|
||||||
this.rotationDegrees = this.startRotationDegrees
|
this.rotationDegrees = this.startRotationDegrees
|
||||||
this.transformOrigin = transformOrigin
|
this.transformOrigin = transformOrigin
|
||||||
@ -1294,7 +1294,7 @@ export class DOMScatter extends AbstractScatter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onTap(event, interaction, point) {
|
onTap(event, interaction, point) {
|
||||||
if (this.simulateClick) {
|
if (this.clickOnTap) {
|
||||||
let p = Points.fromPageToNode(this.element, point)
|
let p = Points.fromPageToNode(this.element, point)
|
||||||
let element = document.elementFromPoint(p.x, p.y)
|
let element = document.elementFromPoint(p.x, p.y)
|
||||||
if (element != null) {
|
if (element != null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user