Skip to content

Commit f8af32e

Browse files
committed
wasm
1 parent b4e136c commit f8af32e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pal/minigame/wechat.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ Object.defineProperty(minigame, 'isLandscape', {
150150
});
151151
// init landscapeOrientation as LANDSCAPE_RIGHT
152152
let landscapeOrientation = Orientation.LANDSCAPE_RIGHT;
153-
if (devideInfo.platform.toLocaleLowerCase() !== 'android') {
153+
if (devideInfo.platform.toLocaleLowerCase() !== 'android' && !globalThis.runOnPlayableMode) {
154154
// onDeviceOrientationChange doesn't work well on Android.
155155
// see this issue: https://developers.weixin.qq.com/community/minigame/doc/000482138dc460e56cfaa5cb15bc00
156156
wx.onDeviceOrientationChange((res) => {

0 commit comments

Comments
 (0)