You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe mounting the Tooltip causes the scroll to the top (not confirmed)
On the first click, the tooltip is created, rather than showing it unconditionally and keeping it at 0 opacity (as is done after it's dismissed for the first time)
Tooltip.svelte only appears to have code for avoiding the border in the X direction, not the Y direction
mousemove and mouseout should probably have touchscreen alternatives
The text was updated successfully, but these errors were encountered:
I find that the FSRS Simulator in the Deck Options is similar to the Forgetting Curve, as both have tooltips. However, the FSRS Simulator doesn't seem to have the same issue. Perhaps the key difference is that the Forgetting Curve is positioned at the bottom of the page, and there isn't enough space for the tooltip. As a result, the tooltip may extend off the screen, finally causing it to slide to the top.
I’m not familiar with the touch alternatives to mousemove, but the behavior of the FSRS Simulator seems to be good enough, as the mousemove event somehow turns to an "onTouchEnd" behavior on my mobile device. I don’t think it’s necessary to handle events like "touchMove" because the finger tends to overlap the graph quite a bit.
Steps
Behaviour
The screen scrolls to top.
(Originally reported on ankidroid/Anki-Android#17546 (comment))
Copying from @david-allison's comment:
anki/ts/routes/card-info/forgetting-curve.ts
Line 255 in f6a3e98
anki/ts/routes/card-info/forgetting-curve.ts
Lines 239 to 260 in f6a3e98
https://github.com/ankitects/anki/blob/f6a3e98ac3dcb19d54e7fdbba96bf2fa15fc2b3f/ts/routes/graphs/Tooltip.svelte
Potential Issues (I don't know Svelte):
I believe mounting the Tooltip causes the scroll to the top (not confirmed)
On the first click, the tooltip is created, rather than showing it unconditionally and keeping it at 0 opacity (as is done after it's dismissed for the first time)
Tooltip.svelte
only appears to have code for avoiding the border in the X direction, not the Y directionmousemove
andmouseout
should probably have touchscreen alternativesThe text was updated successfully, but these errors were encountered: