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

'Push neighboring blocks' affects other days' tasks #619

Open
2 of 6 tasks
pianoman723 opened this issue Nov 6, 2024 · 3 comments
Open
2 of 6 tasks

'Push neighboring blocks' affects other days' tasks #619

pianoman723 opened this issue Nov 6, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@pianoman723
Copy link

Please check that this issue hasn't been reported before.

  • I searched previous Bug Reports didn't find any similar reports.

Expected Behavior

When I move a task with the 'Move block and push neighboring blocks' handle in the Week Planner (regardless of how many days I'm showing), it should only affect that day's tasks.

Current behaviour

It actually pushes tasks/blocks from surrounding days too, whatever is in view.

image

Steps to reproduce

Schedule tasks on different days at different times, then view those days in Week Planner. Use the noted handle to drag one block past where a block is scheduled on a different day, and it will be pushed.

Which Operating Systems are you using?

  • Android
  • iPhone/iPad
  • Linux
  • macOS
  • Windows

Obsidian Version

1.7.5

Possible solution

No response

@pianoman723 pianoman723 added the bug Something isn't working label Nov 6, 2024
@pianoman723
Copy link
Author

Actually it happens when using the 'push' handle in the Timeline as well, not just Week Planner.

@hieundx
Copy link

hieundx commented Nov 27, 2024

This is due to a bug in resizing the current task and shift/shink others. Some how it is miscaculating the time of other tasks.

@hieundx
Copy link

hieundx commented Nov 27, 2024

The bug is here: getEndMinutes(previous) > getMinutesSinceMidnight(current.startTime)

let's say you have 2 tasks on 2 different day. task one from 7:50 - 8:10, task two is at 8:00. But since task A is on a different day, B should not get pushed. But minutes since mid night of 8:10 is greater than those of 8:00, this will cause B to be pushed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants