Bug 341583 - Scrolling by middle-clicking does not trigger a proper redraw
Summary: Scrolling by middle-clicking does not trigger a proper redraw
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
: 347973 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-12-05 16:32 UTC by Ralf Jung
Modified: 2015-05-24 04:10 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 14.12.1
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ralf Jung 2014-12-05 16:32:18 UTC
When I scroll in Okular by middle-cllicking the scroll bar, the document is not drawn properly.

Reproducible: Always

Steps to Reproduce:
1. Open a long (>40 pages) document
2. Click the scroll-bar with the middle mouse button to scroll to some part of the document that has not been shown since the document has been opened

Actual Results:  
The page renders blank or with a very low-resolution, large-pixel "preview" of the actual content.

Expected Results:  
The page should look as it does when scrolling to this place by, for example, using the scroll wheel or the arrow keys.

I set "memory usage" to "aggressive". But the issue also happens with "normal".

This is a regression, things used to work fine until some weeks ago. That could correlate with the update from 4.14.1-1 to 4.14.2-2 in early November (these are Debian package version numbers).
Comment 1 Albert Astals Cid 2014-12-11 23:51:09 UTC
Git commit 67807b73b84d721d051aa4962720dfcf08cbc250 by Albert Astals Cid.
Committed on 11/12/2014 at 23:48.
Pushed by aacid into branch 'Applications/14.12'.

Fix mid mouse button click on the scrollbar

On 45dc1990 i made the wrong assumption that if you were in
slotRequestVisiblePixmaps with the mid mouse button pressed
it meant that you were mid mouse button zooming, but this is not
true if you mid mouse click on the scrollbar.

So the solution to ignore pixmap request on mid mouse button zooming
is actually use blockPixmapsRequest
FIXED-IN: 14.12.1

M  +3    -2    ui/pageview.cpp

http://commits.kde.org/okular/67807b73b84d721d051aa4962720dfcf08cbc250
Comment 2 Albert Astals Cid 2015-05-24 04:10:31 UTC
*** Bug 347973 has been marked as a duplicate of this bug. ***