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

Issue with draggable annotations #21

Open
jessp opened this issue Apr 30, 2016 · 8 comments
Open

Issue with draggable annotations #21

jessp opened this issue Apr 30, 2016 · 8 comments
Assignees
Labels

Comments

@jessp
Copy link
Collaborator

jessp commented Apr 30, 2016

I was just working on redoing the annotation functionality (as per issue #16) and found that in the current demo the annotation drag and drop works unpredictably. (No console errors, but I can do a screen record if its not reproducible on your end.) I'm looking into it now, but help/advice would be appreciated.

@skomputer
Copy link
Owner

I'm noticing that annotation drag and drop only works in a single
direction. If I drag an annotation down and then back up before releasing
it, it's placed at the bottom drag position. If I drag an annotation up and
then down before releasing it, it's placed at the top position. Is this the
issue you encountered, or is it something else? Either way, I'm happy to
take care of it unless you've already figured it out.

On Sat, Apr 30, 2016 at 7:32 PM, Jess Peter [email protected]
wrote:

I was just working on redoing the annotation functionality (as per issue
#16 #16) and found that
in the current demo the annotation drag and drop works unpredictably. (No
console errors, but I can do a screen record if its not reproducible on
your end.) I'm looking into it now, but help/advice would be appreciated.


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#21

@jessp
Copy link
Collaborator Author

jessp commented May 2, 2016

It would be great if you could take a look. I messed with it a bit tonight but am stuck. If it helps, it seems like maybe it has something to do with setting the values setting the move(from, to). (id doesn't seem to exist--unless that's something I messed with doing other stuff...) Thanks for looking!

@jessp
Copy link
Collaborator Author

jessp commented May 2, 2016

Yeah, the id thing I mentioned seems to have just been due to my alterations. I'm back to the point where things drag up but not down.

@jessp
Copy link
Collaborator Author

jessp commented May 2, 2016

Final update for a bit: I was way over thinking things and overcomplicating with new code. Seems that it was mostly a matter of the target in dragover not being properly identified. I fixed the code I'm working on but it's in a fork with lots of other nonsense going on (resulting in a currently inelegant application). I can probably figure out how the fix would apply to the master branch tomorrow after work but I'm calling it a day for now.

@skomputer
Copy link
Owner

Are you able to drag an annotation straight down?

On Sun, May 1, 2016 at 11:35 PM, Jess Peter [email protected]
wrote:

Final update for a bit: I was way over thinking things and
overcomplicating with new code. Seems that it was mostly a matter of the
target in dragover not being properly identified. I fixed the code I'm
working on but it's in a fork with lots of other nonsense going on
(resulting in a currently inelegant application). I can probably figure out
how the fix would apply to the master branch tomorrow after work but I'm
calling it a day for now.


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#21 (comment)

@jessp
Copy link
Collaborator Author

jessp commented May 2, 2016

Yep. Rarely, the dragged item jumps down 2 spaces instead of one but otherwise it seems to work fine. I've attached a quick (but obnoxious) gif to demonstrate since I'm at other work right now. Styling is currently a bit of a mess on this fork.

sample_drag

@jessp
Copy link
Collaborator Author

jessp commented May 3, 2016

Okay, looks like I was mistaken about the issue being present in the current master branch. Just my own muckery on a fork + the issue being present on the demo at http://oli2.littlesis.org/. As long as the demo will be updated eventually, I think we're fine to close the issue and chalk up the misunderstanding to my silliness. Apologies!

@skomputer
Copy link
Owner

don't close the issue! there is a bug: if i drag a node down and then up
before letting go of it, it only moves down, and vice versa.

On Tue, May 3, 2016 at 1:09 PM, Jess Peter [email protected] wrote:

Okay, looks like I was mistaken about the issue being present in the
current master branch. Just my own muckery on a fork + the issue being
present on the demo at http://oli2.littlesis.org/. As long as the demo
will be updated eventually, I think we're fine to close the issue and chalk
up the misunderstanding to my silliness. Apologies!


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#21 (comment)

@skomputer skomputer self-assigned this May 3, 2016
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

2 participants