-
Notifications
You must be signed in to change notification settings - Fork 0
[FEATURE] GUI Node and Label Dragging Issues #298
Comments
Approved! I can also recreate this issue on windows 10 |
Approved! Can recreate on windows 10 |
Approved |
After doing some digging it would seem this might not be a bug but more a feature. The dragging is needed to allow actions such as dragging two branches together to merge. It would seem that the intent was to drag nodes together to merge them, and therefore the dragging is enabled. However there is functionality to reset the position that is triggered when no nodes are dragged together. The application also has significant code pertaining to the ordering and layout of the graph. I would guess the snap back is used to prevent messing up the graph. See graphSetup.ts lines 245 to 265 in 896ad61. What we do about this if anything is an interesting question. I don't think fixing the nodes in place is a good idea because we break existing functionality by doing that. On the contrary letting the user drag around nodes as they please could become very messy for large repositories. My suggestion is that we add some popup when the drag and snapback occurs to notify the user of why it is occurring. Thoughts? @SamuelZheng11 @Ravid12 @rmberriman @hhagenson28 ? |
That sounds like a valid idea, perhaps not a popup per se, with a popup that you have to close would be cumbersome if it popped up everytime you moved the nodes about. Maybe an unobtrusive popup in the corner of the screen that faded away or could be closed in the user wanted to get rid of it asap. What are your thoughts @liamtbrand @SamuelZheng11 @hhagenson28 @Ravid12 ? |
Yep Im good with that idea, ill update the acceptance criteria |
Sounds good to me :) |
Do you think the bug label should be removed and replaced with an enhancement label? |
Describe the bug
When a user clicks and drags the labels attached to the nodes or the nodes themselves on the main screen, then entities can be dragged freely but quickly resets to its original position with a slight offset. To a user, the rubber-banding of the entities is very jarring and may not provide good UX. The slight offset is also not in the same direction that the user drags it in.
If the user clicks and drags the root node, it does not move around freely and rubber band back to the original position, but still, has a slight offset applied when the user lets go
To reproduce
Steps to reproduce the behavior:
npm start
VisualGitExpected behavior / Acceptance criteria
Screenshots
Desktop (please complete the following information):
Additional context
Related issues
#58
The text was updated successfully, but these errors were encountered: