Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • evince evince
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 717
    • Issues 717
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 40
    • Merge requests 40
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOME
  • evinceevince
  • Merge requests
  • !271

shell, libview: "go to previous page" action restores scroll position

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open RobertG requested to merge roblg/evince:backlinks-restore-scrollpos into main Jul 19, 2020
  • Overview 35
  • Commits 2
  • Pipelines 7
  • Changes 3

Make "go to previous page" action restore original scroll position. The effect is that the clicked link ends up in the same position it was in before clicking, making it easy to pick up reading where one left off.

Closes #1458


This takes the approach of inserting a synthetic Link into the history list that points back to the first page visible in the viewport (based on view->start_page), guaranteeing that the document is in the exact same position on return as it was when the link is clicked.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: backlinks-restore-scrollpos