jiangqi
jiangqi
第三个参数也接收一个对象 `{capture:false ,once:true ,passive:true}` **capture**:该类型的事件冒泡阶段触发, **once**:添加之后最多只调用一次, **passive**:表示永远不会调用 preventDefault()。 并且不同的事件处理程序的 passive 的默认是不一样的。 在移动端的 touchmove 事件中 passive 值默认为 true,如果要在移动端中阻止滚动的话,要手动将 passive 设置为 false。
`passive` 默认就是 `false`。 ```js componentRef.current.addEventListener('wheel', onRawWheel, { passive: true, }); ``` 我看内部使用了 `event.preventDefault()` ,设置为 `true` 就使它失效了。 Emmm...不知道有没有其他方案。
> > `passive` 默认就是 `false`。 > > ```js > > componentRef.current.addEventListener('wheel', onRawWheel, { > > passive: true, > > }); > > ``` > > > > > > >...
这警告不是由于 `event.preventDefault()` 呀。 相当于是 Chrome 的一个建议,非被动的(non-passive)的事件监听可能会阻塞页面响应。
在install事件中要加 `self.skipWaiting()` ,不然无法跳转到最新的状态
I am currently using SSAOEffect. Is there any patch that temporarily supports logarithmicDepthBuffer. Thank you.🥹
> useApp 中的 message 是 hooks 实例,不受静态方法 config 影响。 App 可以添加配置这些 api 的能力。 好的,谢谢。 现在的问题是我使用的是暗色主题,必须用 `useApp` 的形式使用 `message`,那这样就是没办法配置 `message` 了 🥲
@shunmian Add the `renderPriority={1}` prop on GizmoHelper