-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possible Minor bug in Ctrl + Del #5
Comments
Known issue. I will document it better, at least. I'd like to also fix it. But so far I've come up with no solution that wouldn't involve more edits to SumatraPDF C++ source. Background: When a highlight is created with A difficulty here is that when exactly during scroll the page number changes in the go to control depends on the zoom level. With zoom 6400% scrolling down shifts page number when about half the window height is covered by pixels from the next page, I think. But if we instead zoom out a lot and scroll down then the page number changes as soon as any part of the topmost visible page is scrolled out of view. For For
|
Readme now documents this as a known issue. |
There is a dirty fix for this issue, but not sure how well it could be implemented, since you need to send c before the user actions and then c again after. The idea is that using the c toggle you can force user to page mode but it will disturb their page position so you would need to hold and reapply current position to scroll to, and that is probably easier said than done ? Perhaps just simpler to tell users highlighting and its erasure work best in page mode only |
Yes, unfortunately. At least until there are SumatraPDF source edits to better expose page data. |
Just a new twist on this one |
I have experimental methods to reliably get exact pagenumber under mouse working. But that requires SumatraPDF C++ source edits. |
@nod5
` |
Yes, that is the same underlying issue. HighlightJump in non-experimental mode reads whatever page SumatraPDF shows in/next to the Toolbar's go to control. If in "book view" and "show pages continuously" is unchecked then I think we could check the mouse position and if on the right half of the window add +1 to get the page number under the mouse. But: I see no silent way to detect if "show pages continuously" if checked or unchecked. Further complication: Book view sometimes shows only one page e.g. when at the first page, and that can be tricky to detect. I think edits to the SumatraPDF source changes is the only way to make progress on this wrong page issue.
Not sure I follow. Is that from the advanced settings file? Or from somewhere else? |
Yes substitute the default empty entry in SumatraPDF-settings.txt with the example above or see an example use in https://forum.sumatrapdfreader.org/t/advanced-tips-add-your-own-notes/2688/2 The page (with the same issue about focus) and full file name are exposed to external apps unfortunatly not the current scroll position or current selection those are all needed as requested say in https://forum.sumatrapdfreader.org/t/feature-request-emit-status/149 |
Issue now fixed in experimental mode (requires SumatraPDF c++ source edits). |
Nod5 good news however I tried compiling in the recent past and
|
I don't know the exact method used by kjk to produce the Prerelease versions and I also know too little C++ to feel confident enough to release binaries, sorry. Some tips on how to compile though:
Keep in mind also that my experimental code may have (likely have) some issues. It is for the moment more of a test to illustrate and prototype, in the hopes of that leading to kjk or someone else adding properly tested and improved versions of the functions to SumatraPDF in the future. |
Nod5
|
Whilst testing CTRL + DEL in continuous page mode and page 1 is partly visible say just a few %
It works correctly on page 2 however page counter is set to Page 1 and is difficult to reset to current page 2 without using page up and down
The consequence is I can add more / replace highlights to still visible page 2 but correction by re-deletion wipes hard-earned highlights on page 1
The text was updated successfully, but these errors were encountered: