Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

彈慕起始位置 錯誤 #2

Open
sjgcl99081 opened this issue Jan 3, 2024 · 0 comments
Open

彈慕起始位置 錯誤 #2

sjgcl99081 opened this issue Jan 3, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@sjgcl99081
Copy link

//初始x坐标为0,即在屏幕的最左侧
//x坐标为1时是弹幕自身宽度的1倍
//将弹幕起始位置设置在屏幕的最右侧,x=容器宽度/弹幕宽度
var x = _viewWidth / danmuSize.width;

若彈慕字數過長時,這計算算出來是錯的。

@xiaoyaocz xiaoyaocz added the bug Something isn't working label May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants