@urso/core 0.8.15 → 0.8.17
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.
package/package.json
CHANGED
|
@@ -77,6 +77,7 @@ class ModulesObjectsModelsButton extends ModulesObjectsBaseModel {
|
|
|
77
77
|
|
|
78
78
|
this._isDisabled = false;
|
|
79
79
|
this._baseObject.buttonMode = true;
|
|
80
|
+
this._baseObject.interactive = true;
|
|
80
81
|
}
|
|
81
82
|
|
|
82
83
|
disable() {
|
|
@@ -86,6 +87,7 @@ class ModulesObjectsModelsButton extends ModulesObjectsBaseModel {
|
|
|
86
87
|
this._changeTexture('disabled');
|
|
87
88
|
this._isDisabled = true;
|
|
88
89
|
this._baseObject.buttonMode = false;
|
|
90
|
+
this._baseObject.interactive = false;
|
|
89
91
|
}
|
|
90
92
|
|
|
91
93
|
_addBaseObject() {
|
|
@@ -45,6 +45,7 @@ class ModulesObjectsModelsHitArea extends ModulesObjectsBaseModel {
|
|
|
45
45
|
return false;
|
|
46
46
|
|
|
47
47
|
this._isDisabled = false;
|
|
48
|
+
this._baseObject.interactive = true;
|
|
48
49
|
}
|
|
49
50
|
|
|
50
51
|
disable() {
|
|
@@ -52,6 +53,7 @@ class ModulesObjectsModelsHitArea extends ModulesObjectsBaseModel {
|
|
|
52
53
|
return false;
|
|
53
54
|
|
|
54
55
|
this._isDisabled = true;
|
|
56
|
+
this._baseObject.interactive = false;
|
|
55
57
|
}
|
|
56
58
|
|
|
57
59
|
_addBaseObject() {
|
|
@@ -80,6 +82,9 @@ class ModulesObjectsModelsHitArea extends ModulesObjectsBaseModel {
|
|
|
80
82
|
}
|
|
81
83
|
|
|
82
84
|
_onTouchmove(event) {
|
|
85
|
+
if (this._isDisabled)
|
|
86
|
+
return false;
|
|
87
|
+
|
|
83
88
|
const position = this._getEventLocalPosition(event);
|
|
84
89
|
|
|
85
90
|
if (this.onTouchMoveCallback)
|
|
@@ -122,9 +127,9 @@ class ModulesObjectsModelsHitArea extends ModulesObjectsBaseModel {
|
|
|
122
127
|
}
|
|
123
128
|
}
|
|
124
129
|
|
|
125
|
-
_onPressUpOutside() {
|
|
130
|
+
_onPressUpOutside(event) {
|
|
126
131
|
if (this.handlePointerUpOutside) {
|
|
127
|
-
this._onPressUp();
|
|
132
|
+
this._onPressUp(event);
|
|
128
133
|
return;
|
|
129
134
|
}
|
|
130
135
|
|
|
@@ -58,6 +58,7 @@ class ModulesObjectsModelsToggle extends UrsoCoreModulesObjectsModelsButton {
|
|
|
58
58
|
|
|
59
59
|
this._isDisabled = false;
|
|
60
60
|
this._baseObject.buttonMode = true;
|
|
61
|
+
this._baseObject.interactive = true;
|
|
61
62
|
}
|
|
62
63
|
|
|
63
64
|
disable() {
|
|
@@ -67,6 +68,7 @@ class ModulesObjectsModelsToggle extends UrsoCoreModulesObjectsModelsButton {
|
|
|
67
68
|
this._changeTexture(`${this.status}Disabled`);
|
|
68
69
|
this._isDisabled = true;
|
|
69
70
|
this._baseObject.buttonMode = false;
|
|
71
|
+
this._baseObject.interactive = false;
|
|
70
72
|
}
|
|
71
73
|
|
|
72
74
|
_addBaseObject() {
|