Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Improve compatibility with pdf-tools #15

Open
mooseyboots opened this issue Apr 15, 2021 · 2 comments
Open

Improve compatibility with pdf-tools #15

mooseyboots opened this issue Apr 15, 2021 · 2 comments
Labels
enhancement New feature or request waiting-upstream Waiting for some upstream change

Comments

@mooseyboots
Copy link

hi, first, i'm happy to say good scroll now works rly well for me when in the past it didn't, well done.

i have just been trying to use it in pdf-view-mode, and it works (which is a real pleasure for reading!), but when i try to select some text to create an annotation, the scroll position reverts to what it was before any smooth mouse good scrolling was done.

i noticed it doesn't do this if i e.g. hit down arrow to scroll by one line after some smooth mouse good scrolling.

(not sure if this is an issue for good scroll or pdf-tools, or maybe there's already a simple user way to solve this...)

@io12 io12 added bug Something isn't working enhancement New feature or request help wanted Extra attention is needed labels Apr 15, 2021
@io12
Copy link
Owner

io12 commented Apr 15, 2021

Thanks for your issue! I think the main reason pdf-tools doesn't work well with good-scroll is good-scroll works by setting mwheel-scroll-up-function and mwheel-scroll-down-function, but pdf-tools has its own overrides for those functions that allow it to track how much the buffer has scrolled. Another issue is you can't scroll between pages with good-scroll. Do you use the page up and page down keys to switch pages or something like that? Also, since pdf-tools sets buffer-local versions of the mwheel-scroll- variables, the smooth scrolling is only enabled if good-scroll-mode is run inside a pdf-view-mode buffer. I'm not really sure if any of these issues has an easy fix, but I'll look into it more eventually.

Checklist

  • Fix scroll position reverting when selecting text
  • Allow scrolling between pages
  • Prevent pdf-tools from overriding mwheel-scroll- variables in a way that keeps smooth scrolling but doesn't break things

@io12 io12 changed the title how it works with pdf-tools Improve compatibility with pdf-tools Apr 15, 2021
@io12 io12 added waiting-upstream Waiting for some upstream change and removed bug Something isn't working help wanted Extra attention is needed labels Jun 17, 2021
@io12
Copy link
Owner

io12 commented Jun 17, 2021

I want to wait until this feature is added before working on this: politza/pdf-tools#27

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request waiting-upstream Waiting for some upstream change
Projects
None yet
Development

No branches or pull requests

2 participants