hellodigua / vue-danmaku

基于 Vue 的弹幕交互组件 | A danmaku component for Vue
https://hellodigua.github.io/vue-danmaku
MIT License
620 stars 60 forks source link

容器大小发生变化已生成弹幕移动距离没有跟着变化,when container size change, already generated danmu's moving range didn't change with container #32

Closed drake-isc closed 2 years ago

drake-isc commented 2 years ago

当我点击播放器全屏,已经发出来的弹幕到达小窗口尺寸的地方就消失了。需要增加判断容器大小变化实时的改变弹幕移动距离。

When I click the full screen of the player, the barrage that has been sent out disappears when it reaches the size of the small window size. It is need to add the real-time change of the barrage movement distance by judging the container size change.

hellodigua commented 2 years ago

这部分逻辑需要在外边实现,然后调用组件内置的 resize() 方法重置弹幕容器尺寸