sawhney17 / logseq-pomodoro-plugin

A quick pomodoro timer for logseq
MIT License
20 stars 9 forks source link

Change the timer implementation to fix behavior when app is backgrounded. #12

Open wmeddie opened 11 months ago

wmeddie commented 11 months ago

By using dates instead of a counter we can get an accurate countdown. Especially as modern versions of Chromium slow down intervals when the app is not in the foreground.

During my testing a 25 minute pomodoro could take anywhere between 30 and 40 minutes with the previous implementation as I didn't have Logseq in the foreground.

This implements standard tricks to make the first seconds display better aesthetically (like adding a few milliseconds to timers).

This should fix #11

isosphere commented 8 months ago

I'm running this PR unpacked as a replacement for this plugin and the timer is working well. The base plugin off the marketplace runs noticeably slow.