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

Ability to rearrange the windows. #146

Closed
imolorhe opened this issue Nov 14, 2017 · 3 comments
Closed

Ability to rearrange the windows. #146

imolorhe opened this issue Nov 14, 2017 · 3 comments

Comments

@imolorhe
Copy link
Collaborator

imolorhe commented Nov 14, 2017

The window positions need to be stored and used when deciding the order of the tabs.

https://www.html5rocks.com/en/tutorials/dnd/basics/

NOTE: If the solution involves adding a new window position data to the state, utilize the app init action to patch older app versions without the window position data, so they don't break.

@imolorhe
Copy link
Collaborator Author

Create a new reducer (windows meta) to store extra information like this about windows states.

@imolorhe
Copy link
Collaborator Author

Potential solution using the new windows meta reducer:

  • create an array of all the window IDs
  • create an effect that watches each time a window action is dispatched, and updates the window IDs array
  • Use the new window IDs array to determine the position of each window.

@imolorhe
Copy link
Collaborator Author

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

No branches or pull requests

1 participant