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

Implement command for dragging #109

Open
david-tejada opened this issue Apr 27, 2023 · 0 comments
Open

Implement command for dragging #109

david-tejada opened this issue Apr 27, 2023 · 0 comments
Labels

Comments

@david-tejada
Copy link
Owner

david-tejada commented Apr 27, 2023

Depends on #107 and #108.

Sometimes the drag handle only appears as you hover over the element, so we probably need to dispatch the hover events first and then look for an element in the vicinity with cursor: grab. Once we have the elements coordinates and the target coordinates we can send the command with the origin and target coordinates to talon to drag the element.

I want the following commands to be possible:

  • drag bat to drum
  • drag bat below drum
  • drag bat above drum
  • drag bat before drum
  • drag bat after drum

For the relative positions we would use the target as defined in #108.

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

No branches or pull requests

1 participant