Bug 162219 - Adjust view to the position where you clicked into the thumbnail
Summary: Adjust view to the position where you clicked into the thumbnail
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.19.60
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
: 328686 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-05-17 18:09 UTC by Enrico Scholz
Modified: 2016-04-05 22:33 UTC (History)
5 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Enrico Scholz 2008-05-17 18:09:03 UTC
Version:           0.6.3 (using KDE 4.0.3)
Installed from:    Fedora RPMs

I often use okular to view schematics and have to set a high zoom level there. Hence, visible view is only a small part of the page.  It would be nice when the view would be adjusted to the position where I clicked into a thumbnail.

E.g. when clicking into the thumbnail in the left upper corner, the main view should be moved to there.  Currently, the main view seems to be always centered at the top of the page.
Comment 1 alvaro 2013-04-05 05:36:10 UTC
i see the same behavior on Okular 0.15.4, on linux arch.
on continuous page mode, with fill-width zoom, when a click is done on a thumbnail, the shown page is in the middle, i.e. 2 pages are shown at half each one. it is really annoying.
Comment 2 Luigi Toscano 2014-05-08 15:35:20 UTC
*** Bug 328686 has been marked as a duplicate of this bug. ***
Comment 3 Luigi Toscano 2014-05-08 15:36:26 UTC
See the comments in the duplicated bug too, raising priority, not simple wishlist.
Comment 4 Richard Llom 2014-05-10 10:01:52 UTC
(In reply to comment #3)
> See the comments in the duplicated bug too, raising priority, not simple
> wishlist.
Comment 5 Bennett 2015-02-28 19:49:22 UTC
I am seeing this as well with 0.19.3 and thought this was fixed in  Bug 201669 - Scrolling in thumbnails view is broken.  In 201669 there were a few things fixed including what I thought was this behavior.  

I downloaded the source and did a build of 0.21.60 and compared the ui/thumbnaillist.cpp and the changes from 201669 are there.  This build behaves the same way as what is described in this bug as well as what was suppose to be fixed regarding the selection of thumbnails in 201669.

Playing with the mouse event code in thumbnaillist.cpp and rebuilding was not useful to me, as I am a noob with c++ and not sure what I am doing.  I did download the okular source from KDE 14.14 (I am on 14.13 installed on ubuntu), and the thumbnaillist.cpp is exactly the same.
Comment 6 miklos 2015-02-28 22:08:00 UTC
The bug is not in the thumbnails IMHO. When a document is reloaded, because the file was changed, Okular jumps to between the current and the previous page. The 'jump to page X' operation jumps to X-0.5 instead of X, and thus the border between the two pages gets to be in the center of the screen.
Comment 7 Albert Astals Cid 2016-04-05 22:33:09 UTC
Git commit c183dd8bd300b39e55e3309b6b279b6e7b8e19c2 by Albert Astals Cid, on behalf of Miklós Máté.
Committed on 05/04/2016 at 22:31.
Pushed by aacid into branch 'Applications/16.04'.

Set viewport to the position clicked on the thumbnail list

Also fix the mouse cursor shape
REVIEW: 127526

M  +29   -21   ui/thumbnaillist.cpp

http://commits.kde.org/okular/c183dd8bd300b39e55e3309b6b279b6e7b8e19c2