[Okular-devel] Bug 157198 - Remember position on the page in bookmark

Mailson Lira mailson at gmail.com
Wed Mar 21 16:04:46 UTC 2012

On Tue, Mar 20, 2012 at 20:10, Albert Astals Cid <aacid at kde.org> wrote:
> By scrolling the viewport? Only by clicking in the bookmark?
Although will work better by clicking in the bookmark, I think it's a
good idea to do the same by srolling the viewport. Otherwise the user
may add multiple bookmarks in the same location.

> If by scrolling in the viewport how much tolerance you have to consider
> you are in a given bookmark?

The tolerance will be of 6 decimal digits.
I'm using the string returned on DocumentViewport::toString() to set
the bookmark url. Since this function sets the precision to 6 decimal
digits, the comparison will do the same.

More information about the Okular-devel mailing list