javalent / dice-roller

Inline dice rolling for Obsidian.md
272 stars 29 forks source link

🧩 Graphical dice animation too long #274

Open saif-ellafi opened 10 months ago

saif-ellafi commented 10 months ago

Scope

Hi there! Can't thank enough for your brilliant work.

Dice roll animations seem to be tied to the size of the screen. I am using a pretty high density wide screen, and if I go full screen with obsidian, the dice rolling goes aaaaaaaaall the way through one side of the screen, to bounce back to the other side of the screen and bounce back, taking a few seconds for the roll to drop.

Discovery

Would it be possible to limit the animation duration of the dice, so dice stop "rolling" on screen earlier, a bit like in real life where one shuffles dice with the hand but the dice physically only roll so much near the point of drop, taking at most 1 second before it stops rolling.

Validate

Large screens, ultra-wide, full screen, pixel dense resolutions.