diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/platform/PlatformViewsController.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/platform/PlatformViewsController.ets index 8afcd8704308748e02eb41e0d5f2dea566814d63..c3fd15e16e554032f4d1b4317ddcf91208eb2e98 100644 --- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/platform/PlatformViewsController.ets +++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/platform/PlatformViewsController.ets @@ -89,7 +89,7 @@ export default class PlatformViewsController implements PlatformViewsAccessibili private platformViewParent: Map; private nodeControllers: Stack; private viewPhysicalInfo: Map = new Map(); - private dValue: number = 3; + private dValue: number = 1; constructor() { this.registry = new PlatformViewRegistryImpl(); @@ -188,7 +188,7 @@ export default class PlatformViewsController implements PlatformViewsAccessibili let oldPhysicalHeight: number = 0; if (this.viewPhysicalInfo.has(viewId)) { oldPhysicalHeight = this.viewPhysicalInfo.get(viewId) as number; - //高度变化小于3,不做刷新处理,减少闪烁 + //高度变化小于1,不做刷新处理,减少闪烁 if (physicalHeight - oldPhysicalHeight < this.dValue) { this.setParams(params!, "width", physicalWidth);