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

希望老虎機加入一個設定,不要同時開始和停止,想要有延遲性,還有可以出現不同的結果 ( 抽不中 ),謝謝~ #523

Open
harrisonh1991 opened this issue Oct 28, 2024 · 1 comment

Comments

@harrisonh1991
Copy link

  • 你当前是什么框架(必填): vue
  • 你使用的是哪个包(必填):"@lucky-canvas/vue": "^0.1.11",
  • 你当前插件的版本(必填):@lucky-canvas/vue ^0.1.11
@harrisonh1991 harrisonh1991 changed the title 希望老虎機加入一個設定,不要同時開始和停止,想要有延遲性,謝謝~ 希望老虎機加入一個設定,不要同時開始和停止,想要有延遲性,還有可以出現不同的結果 ( 抽不中 ),謝謝~ Oct 29, 2024
@dribble-njr
Copy link

几个 slot 单独用,然后延迟 play

slotMachineRefs.current.forEach((ref, index) => {
  // 增加时间差,避免同时滚动
  setTimeout(() => {
    ref?.spinTo((pageState?.data.currentRound ?? 1) - 1);
  }, index * 120);
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants