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

Drag and Drop #35

Open
codeZeilen opened this issue Apr 30, 2018 · 1 comment
Open

Drag and Drop #35

codeZeilen opened this issue Apr 30, 2018 · 1 comment
Labels
question Further information is requested

Comments

@codeZeilen
Copy link
Collaborator

This is probably more a question/discussion issue: Does Pheno have (want to have) any say in the drag and drop process? :)

I noticed that currently PHClickable>>#mouseDown: prevents the default drag and drop process to kick in (adding a super call solves that for now). At the same time there is the PHClickable>>#initiateDragOf: hook which seems to be used to implement a simple drag and drop forwarding?

@codeZeilen codeZeilen added the question Further information is requested label Apr 30, 2018
@tom95
Copy link
Owner

tom95 commented May 2, 2018

If there is no nasty side effects (e.g. hover state not being removed) of letting the default DnD kick in, we should definitely add the super calls for event handling right away. I believe the fact that they're missing right now was merely an oversight.

Other than that I believe that Pheno should support some DnD capabilities and probably ship with some DnD interactions by default as well. I would like to use this issue as a starting to point to collect some use cases to find an abstraction that fits the library well (in the best case, this will just be the default Morphic DnD).

  • Reordering lists
  • Creating "dropzones" for external files, possibly also as part of a designated filepicker button
  • Moving text between textareas (as already seen in Morphic)
  • Special subcase of constrainted movement for the slider of the scrollbar/sliders in general?

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

No branches or pull requests

2 participants