Closed mark-dce closed 10 years ago
@mark-dce I assume you are talking about a page like http://localhost:3000/personal_collections/tufts.uc:4 ?
If that's the case, if we make the whole tile clickable to link, that would disable it's drag and drop capability.
Really??? I suspect there must be a way to make an item both clickable and draggable - see this post: http://forum.jquery.com/topic/can-the-same-element-have-draggable-and-click-event
@mark-dce those docs are for a library we are not using. We are using nestable. We need to define a drag handle that is not clickable as a link. Currently we have the whole tile is the drag handle with the exception of the title, which is a link.
I think we could do this if we patch up the clickable library. The approaches that some people are taking in the Jquery-Draggable link seem overly simplistic because if your mouse moves even 1px between the time the button goes down and the button comes up, then it's a drag rather than a click. Gmail does something like this, but It looks like it gives you a small amount of leeway before considering your action a "drag" event.
Agreed - it almost seems like you could consider any movement less than say half the width or height of the thing as a click - i.e. you've moused it, but you didn't move it far enough to impact the order, so you must have wanted to view it instead. Even 10%-15% of the object dimensions would work and would accommodate folks with shaking hands.
see #56, #58 - use the same tile partial for all three views?