feat(whiteboard): two-finger scroll#20267
Merged
criticalAY merged 1 commit intoankidroid:mainfrom Feb 5, 2026
Merged
Conversation
david-allison
approved these changes
Jan 30, 2026
Member
david-allison
left a comment
There was a problem hiding this comment.
I'm happy, one borderline non-nit. Thanks!!
AnkiDroid/src/main/java/com/ichi2/anki/ui/windows/reviewer/whiteboard/WhiteboardView.kt
Outdated
Show resolved
Hide resolved
AnkiDroid/src/main/java/com/ichi2/anki/ui/windows/reviewer/whiteboard/WhiteboardView.kt
Outdated
Show resolved
Hide resolved
AnkiDroid/src/main/java/com/ichi2/anki/ui/windows/reviewer/whiteboard/WhiteboardView.kt
Outdated
Show resolved
Hide resolved
AnkiDroid/src/main/java/com/ichi2/anki/ui/windows/reviewer/whiteboard/WhiteboardView.kt
Outdated
Show resolved
Hide resolved
AnkiDroid/src/main/java/com/ichi2/anki/ui/windows/reviewer/whiteboard/WhiteboardView.kt
Outdated
Show resolved
Hide resolved
AnkiDroid/src/main/java/com/ichi2/anki/ui/windows/reviewer/whiteboard/WhiteboardView.kt
Outdated
Show resolved
Hide resolved
AnkiDroid/src/main/java/com/ichi2/anki/ui/windows/reviewer/whiteboard/WhiteboardFragment.kt
Outdated
Show resolved
Hide resolved
5 tasks
d4c2f07 to
2a3ec55
Compare
2a3ec55 to
bfebd4c
Compare
Member
david-allison
left a comment
There was a problem hiding this comment.
One question, but still good to go
AnkiDroid/src/main/java/com/ichi2/anki/ui/windows/reviewer/whiteboard/WhiteboardView.kt
Show resolved
Hide resolved
AnkiDroid/src/main/java/com/ichi2/anki/ui/windows/reviewer/whiteboard/WhiteboardView.kt
Show resolved
Hide resolved
AnkiDroid/src/main/java/com/ichi2/anki/ui/windows/reviewer/whiteboard/WhiteboardView.kt
Show resolved
Hide resolved
1dbe915 to
677e377
Compare
criticalAY
requested changes
Feb 5, 2026
AnkiDroid/src/main/java/com/ichi2/anki/ui/windows/reviewer/whiteboard/WhiteboardView.kt
Outdated
Show resolved
Hide resolved
677e377 to
d3101dc
Compare
also made possible to scroll with one finger if stylus mode is enabled
d3101dc to
931a84a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose / Description
Feature present in the old whiteboard that people missed
Approach
I didn't want to think too much, so I followed the approach used by the old whiteboard
Anki-Android/AnkiDroid/src/main/java/com/ichi2/anki/Whiteboard.kt
Line 324 in 2afb4ad
After that, I added support for interacting with the screen with just one finger if stylus mode is enabled
How Has This Been Tested?
Galaxy Tab S9, Android 16
Screen_Recording_20260130_152118_AnkiDroid.mp4
Checklist
Please, go through these checks before submitting the PR.