Prevent note from sliding down when clicking on the tracker in edit mode
Hey there !
I noticed that currently, if you use that plugin while in Live preview mode from Obsidian, you end up with a page that goes down each time you click on a button of the timer. It doesn't happen in Reading View mode, fortunately.
I don't know if there's much to do, but as it is quite easy to reproduce, I hope something can be done !
# test
this is a note
```simple-time-tracker
{"entries":[{"name":"test","startTime":"2023-12-11T17:15:41.613Z","endTime":"2023-12-11T17:15:51.088Z","subEntries":null}]}
```
zqdqz dzq
qz dq
zdzq
dqz
dqz
d qz
d
qz
d qz
d qz
d qz
dqz
d
qz
dqz
d
qz
d
qz
d
qz
d
qz
d
qz
d
qz
d
qz
d
qz
d
qz
d
Cannot reproduce the issue on macOS, as well as Windows. Checked in Live preview and Reading preview. The page stays on position by clicking on the buttons. Tested with the test-code from above.
@Ellpeck - issue can be closed.
I actually managed to reproduce this multiple times while using the plugin for work myself. It only happens to me when the list of segments is very long (>= 30 or 50) and I'm opening/closing segments using the little arrows near the bottom of the tracker. I'm not sure what exactly is causing it, but my guess is that, when saving the data to the file, Obsidian thinks "this section was just edited so the cursor must be at the end of it!"