linuxmint / linuxmint/xreader

Middle-Button Scrolling on Pdf Files Causes Smooth/Animated Inertial Scrolling

Open
#648 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
283
Forks
82
PR merge metrics
No merged PRs in 30d

Description

Distribution

Fedora 40 t2

Package version

4.0.2

Frequency

Quite often

Bug description

If I use a 3-button mouse and middle-button scrolling, then the page continues scrolling after I've stopped scrolling. It takes time o slow down and stop.

Animated scrolling is disorienting, it makes it harder to find your place after scrolling, and it can cause motion sickness.

I'm uing Cinnamon, with Effects turned off, to try to avoid these types of animation.

Steps to reproduce
  1. Open a pdf file in xreader.
  2. Set it to continuous view; page-by-page view currently breaks scrolling.
  3. Hold the middle mouse button and drag up or down for some time. The longer you drag, the more likely you are to encounter the continued scrolling.
Expected behavior

When you release the middle mouse button, it should stop scrolling.

Additional information

This is for the grab scroll option, not for autoscroll.

Xreader has its own built-in grab scroll. In addition, if you use xorg, then xinput set-prop can set global grab scroll. This occurs with the xinput grab scroll disabled (so the xreader version is doing this) or enabled (so either or both may be doing this). From what I've seen, if you use wayland, there is not yet any global grab scroll.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue in Xreader 4.0.2 using continuous view and the built-in grab scroll with a middle-button drag. Start by locating Xreader's grab-scroll handling and compare behavior with xinput grab scroll disabled and enabled. Done means releasing the middle button stops scrolling immediately without inertial movement.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.