@gamelearn/arcade-components 1.2.2 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -31,10 +31,11 @@ var ElementsList = function ElementsList(_ref) {
|
|
|
31
31
|
var status = _ref2.status;
|
|
32
32
|
var invisibleStatus = ['invisible', 'used'];
|
|
33
33
|
return !invisibleStatus.includes(status);
|
|
34
|
-
};
|
|
34
|
+
}; // Por alguna razon el puto raycast esta pillando elementos sin padre/hijo
|
|
35
|
+
|
|
35
36
|
|
|
36
37
|
var handleClick = function handleClick(e, props) {
|
|
37
|
-
eventHandler({
|
|
38
|
+
if (e.eventObject.parent !== null) eventHandler({
|
|
38
39
|
type: 'click',
|
|
39
40
|
event: e,
|
|
40
41
|
props: props
|
|
@@ -42,7 +43,7 @@ var ElementsList = function ElementsList(_ref) {
|
|
|
42
43
|
};
|
|
43
44
|
|
|
44
45
|
var onHover = function onHover(e, props) {
|
|
45
|
-
eventHandler({
|
|
46
|
+
if (e.eventObject.parent !== null) eventHandler({
|
|
46
47
|
type: 'hover',
|
|
47
48
|
event: e,
|
|
48
49
|
props: props
|
|
@@ -50,7 +51,7 @@ var ElementsList = function ElementsList(_ref) {
|
|
|
50
51
|
};
|
|
51
52
|
|
|
52
53
|
var onOut = function onOut(e, props) {
|
|
53
|
-
eventHandler({
|
|
54
|
+
if (e.eventObject.parent !== null) eventHandler({
|
|
54
55
|
type: 'out',
|
|
55
56
|
event: e,
|
|
56
57
|
props: props
|