Coder Social home page Coder Social logo

miniprogram-barrage's People

Contributors

selmalee avatar wechat-miniprogram-admin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

miniprogram-barrage's Issues

Cannot read property 'bullets' of undefined

小程序错误日志如下

Cannot read property 'bullets' of undefined
TypeError: Cannot read property 'bullets' of undefined
at t.animationend (https://miniprogram_npm/miniprogram-barrage/index.js:760:25)
at it.onAnimationend (https://miniprogram_npm/miniprogram-barrage/index.js:213:28)

看了代码是tunnel不存在时,tunnel.bullets会报错。已提pr #3

e.forEach is not a function

小程序错误日志如下:

e.forEach is not a function. (In 'e.forEach((function(e){e.content=a(e.content,t.maxLength),t.addBullet2Tunnel(e)}))', 'e.forEach' is undefined)
addData@https://miniprogram_npm/miniprogram-barrage/index.js:602:10
https://miniprogram_npm/miniprogram-barrage/index.js:435:29
ready@https://miniprogram_npm/miniprogram-barrage/index.js:433:20
https://miniprogram_npm/miniprogram-barrage/index.js:425:13

弹幕循环

在弹幕数量比较少的时候,比如只有20条弹幕,两三秒弹幕就滚完了。如果需要重新循环的话需要再调用添加弹幕的方法进行循环,在弹幕数量是动态的情况下我并不知道添加弹幕的时机,或者有个弹幕滚动完毕的回调函数?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.