-
Notifications
You must be signed in to change notification settings - Fork 1
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
Reordering Tasks in Focus Doesn't Always Work #154
Comments
There is an easy way to reproduce this:
A potential solution is to make the droppable section bigger. |
That's strange. I've been entirely unable to reproduce the bug at all in either of our development branches - neither master nor the experimental typescript branch. It's very prevalent on samwise.today though. Here's a video: https://youtu.be/UrPOpAIC8Ig |
@mt-xing I was unable to reproduce the problem on my machine. But I do notice that there will be a little trouble to drag and drop when the focus view's visible parts cannot show 2 tasks. |
I believe I understand the root cause. return (
<div>
<FocusedTask key="1" />
{null}
<FocusedTask key="3" />
</div>
); This solution may work for any other circumstances, but not for drag-and-drop, at least for the current framework, because the presence of null inside the virtual DOM may affect the drop position calculation. I'm going to fix this when I'm implementing the separation of completed task and uncompleted task in focus view. |
Around 90% of the time, reordering a task in focus view by clicking and dragging just results in the task snapping immediately back to where it was. It'll take about a dozen tries before the task actually stays where it was dropped.
The text was updated successfully, but these errors were encountered: