收藏
回答

iOS设备在relativeToViewport设置了margins后observe失效问题

框架类型 问题类型 终端类型 微信版本 基础库版本
小程序 Bug 微信iOS客户端 8.0.58 3.8.1

iOS设备在SDK3.8.1中,若设置了margins,则observe会失效【无法触发监听事件】

this.createIntersectionObserver().relativeToViewport({ top: 100, bottom: 100 })

https://developers.weixin.qq.com/miniprogram/dev/api/wxml/IntersectionObserver.relativeToViewport.htmlhttps://developers.weixin.qq.com/miniprogram/dev/api/wxml/IntersectionObserver.relativeToViewport.html



回答关注问题邀请回答
收藏
登录 后发表内容