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

Prevent note from sliding down when clicking on the tracker in edit mode #32

Open
mathisgauthey opened this issue Dec 11, 2023 · 2 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@mathisgauthey
Copy link

mathisgauthey commented Dec 11, 2023

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
@Ellpeck Ellpeck added bug Something isn't working enhancement New feature or request labels Dec 11, 2023
@Karamellwuerfel
Copy link
Contributor

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.

@Ellpeck
Copy link
Owner

Ellpeck commented Nov 17, 2024

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!"

@Ellpeck Ellpeck reopened this Nov 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants