Bug 341583

Summary: Scrolling by middle-clicking does not trigger a proper redraw
Product: [Applications] okular Reporter: Ralf Jung <post>
Component: generalAssignee: Okular developers <okular-devel>
Status: RESOLVED FIXED    
Severity: normal CC: aacid, porton
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 14.12.1

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. ***