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

Albert Astals Cid aacid at kde.org
Wed Mar 21 18:19:02 UTC 2012


El Dimecres, 21 de març de 2012, a les 13:04:46, Mailson Lira va escriure:
> 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.

This looks like it will break with different zooming, etc, but let's see the 
patch (on reviewboard) and we can discuss over the real thing once you have it 
:-)

Albert

> _______________________________________________
> Okular-devel mailing list
> Okular-devel at kde.org
> https://mail.kde.org/mailman/listinfo/okular-devel


More information about the Okular-devel mailing list