Focusly
Focusly copied to clipboard
2 lofi's runs simultaniously
Describe the bug 2 lofi's run simultaneously
To Reproduce Steps to reproduce the behavior:
- Go to 'main page'
- Click on 'any lofi'
- Click on 'another lofi'
- See error both lofi runs simultaneously
Expected behavior When one lofi is running and user clicks on another one "I think first one should pause automatically".
Screenshots If applicable, add screenshot(s) of the bug to help explain your problem.
Desktop (please complete the following information):
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
Smartphone (please complete the following information):
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
Additional context Add any other context about the problem here.
hey @Abhishek7Tech thanks for opening this issue. Would you like to work on this issue? If yes then do share how you will be solving the issue.
Hi @Utkarshn10 I would like to but I am working on some other project so it may take some long time before I finish it out.
No problem. Take your time.
@Utkarshn10 Hi I was reviewing the card component. Looks like it will need major changes to solve this issue.
@Utkarshn10 Hi When 2 lofi's are run simultaneously looks like the time is running fast as well.
@Utkarshn10 Hi I was reviewing the card component. Looks like it will need major changes to solve this issue.
Hey @Abhishek7Tech apologies for reaching out late. Yes card component might require some changes or we need to create a new card component for Lofi that only allows one run. Creating the new card component should also fix the timer issue.
HI @Utkarshn10 Apologies for replying so late, been busy with some work.
About the card component , I think we should start by adding a property like "playing: false" to each element and whenever user hits the play button the data should be updated and "playing: true" .
Hey @Abhishek7Tech no need to be sorry. We all are here to collaborate and we are grateful to have you as a collaborator 😄
You can go ahead with the changes.
@Utkarshn10 It will take time unfortunately, been busy with a lot of work at present.
No problem. Should I assign this to you ?
@Utkarshn10 NO I would like to pass this one.
i want to work on this issue
Hey @asifMalik78 yeah sure. Issue assigned to you. Please go through the contribution guidelines mentioned in the README.