Open 3hree6ixty5ive opened 4 days ago
Is this in live preview?
Yes this is using live preview mode, doesn't have the issue when i switch to Reading mode
Update: I was able to come up with a fix for Windows using the following CSS:
.dice-roller { user-select: none; }
This stops the first click from moving the cursor and that seems to allow the dice time to roll without glitching, so it works as intended. However this doesn't seem to work on iOS, I'm assuming due to different methods of handling clicks.
Check for existing bug reports before submitting.
Expected Behavior
With rendering of graphical dice enabled, (either with "Always Render Dice", or the |render flag), clicking on a formula while the cursor is on a different line, should result in a graphical dice being rolled, and the result appearing after the dice is done rolling.
Current behaviour
If you click on a formula while the cursor is on a different line the following happens:
Subsequent clicks, after the cursor has jumped to the same line, perform correctly, showing a graphical dice and waiting for the result. Moving the cursor to a different line will cause the same issue to occur again.
Reproduction
dice:1d12
Which Operating Systems are you using?
Obsidian Version Check
1.7.7 and 1.6.5(Installer)
Plugin Version
11.4.1
Confirmation
Possible solution
No response