QScroller Touch Scroll
An Anki add-on that makes the Browser card/note list work with touchscreens —
especially when Anki runs on a laptop and is streamed to a tablet (e.g. via
UScreen). Without this, Qt turns a finger drag into mouse drags and Anki selects
many rows instead of scrolling.
Features
- Single-finger drag pans the Browser list.
- Quick flick adds kinetic (inertial) scrolling.
- Stationary tap still selects exactly one card.
- Two-finger swipe scrolls without multi-selecting rows.
- No mouse cursor required on the tablet.
Project structure
addon/ # the real Anki add-on (symlink this into addons21)
__init__.py # import-safe startup / hook wiring
browser_hooks.py # touch event filter and scroll implementation
config.py # validated settings
config.json # shipped defaults
config.md # in-Anki config reference
constants.py # keys and defaults
config_io.py # merge-safe config/state IO
logger.py # profile-scoped logging
config_ui/ # settings dialog (General / Logs / Support)
manifest.json
bump.py # version bumping
make_ankiaddon.py # build timestamped .ankiaddon
tests/ # import-safe unit tests
docs/ # setup, development, packaging, etc.
Development
Symlink the live addon folder into Anki:
ln -s "$(pwd)/addon" ~/.local/share/Anki2/addons21/qscroller_touch_scroll_dev
Restart Anki, open Browse, and use touch.
Tests / packaging
python3 -m unittest discover -s tests
python3 make_ankiaddon.py
Built on the Anki add-on template.