OPPO K1屏幕适配的问题,必现

小游戏 企业微信 微信支付 小程序 文章 2020-07-30 21:01 605 0 全屏看文

AI助手支持GPT4.0

OPPO K1屏幕适配的问题,必现
框架类型 问题类型 操作系统 操作系统版本 手机型号 微信版本
小游戏 Bug Android Android 8.1.0 Color OS V5.2 OPPO K1 7.0.16

在OPPO K1 微信中打开线上的自己发布的微信小游戏,出现我们自己项目的画面后,这时的屏幕适配是没有问题的,图片显示的区域与触摸区域是一样的,然后杀掉微信小游戏的进程,再通过微信程序打开我们的微信小游戏,这时间会出现图片的显示跟触摸区域就不一样了,图片显示的区域跟前次不一样,但是触摸区域还是前次的位置。但是如果再通过微信点击一下我们的发布的小游戏,切到微信小游戏进程时,图片显示的区域与触摸区域又一致了.我们使用的是cocos creator2.2.2版本,但是如果打开了debug开关也没这个问题,即wx.setEnableDebug({ enableDebug: true});

Framework type problem type operating system operating system version mobile phone model wechat version bug Android Android 8.1.0 color OS V5.2 oppo K1 7.0.16 in oppo K1 In wechat, when we open our own wechat game, when the screen of our project appears, there is no problem with the screen adaptation. The image display area is the same as the touch area. Then kill the process of wechat game, and then open our wechat game through wechat program. At this time, the image display is different from the touch area, The area shown in the picture is different from the previous one, but the touch area is still the previous position. However, if we click on our released game through wechat and switch to the wechat game process, the area shown in the picture is consistent with the touch area. We use cocos creator version 2.2.2, but if the debug switch is turned on, there is no problem wx.setEnableDebug ({ enableDebug: true});

回答:

小游戏运营专员-宏:

你好,请问ios是否有这个问题?能否提供个能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

-EOF-

AI助手支持GPT4.0