evmux-app-framework 0.1.13 → 0.1.14
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
|
@@ -185,9 +185,10 @@ let createEventResultObject = (requestName, eventName, result) => {
|
|
|
185
185
|
computeVolumeMultiplier(userAppInstanceId, componentId) {
|
|
186
186
|
if (this.getComponentCount(userAppInstanceId) <= 1) return 1
|
|
187
187
|
const isPrv = componentId.startsWith('live_')
|
|
188
|
-
if (this._app
|
|
189
|
-
const
|
|
190
|
-
|
|
188
|
+
if (this._app && this._app.studioMode && !isPrv) return 0
|
|
189
|
+
const appInstance = this._userAppInstances[userAppInstanceId]
|
|
190
|
+
const comp = appInstance && appInstance.instances && appInstance.instances[componentId]
|
|
191
|
+
if (this._app && this._app.isLandscapeAndPortraitMode && comp && comp.portraitMode) return 0
|
|
191
192
|
return 1
|
|
192
193
|
}
|
|
193
194
|
|