Skip to content
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

No scrollbar on content unless I disable Javascript #33

Open
ojwb opened this issue Mar 12, 2024 · 3 comments
Open

No scrollbar on content unless I disable Javascript #33

ojwb opened this issue Mar 12, 2024 · 3 comments

Comments

@ojwb
Copy link

ojwb commented Mar 12, 2024

With the attached .chm file I don't get a scrollbar on pages which are longer than the screen, and I also can't seem to scroll with the keyboard. The first page "Introduction" shows the problem, but it seems to apply to all pages long than one screen:

noscrollchm.zip

I've discovered I do get a scrollbar if I disable Javascript in the settings (and restart for the change to have effect), so there's a workaround at least.

(I wonder if Javascript off might be a better default as well as solving this...)

@u-235
Copy link
Contributor

u-235 commented Mar 13, 2024

Hi.

You didn't specify the version of the application and what engine it's built with - WebKit or WebEngine, but it probably doesn't matter.

Your sample chm file is generated with the Help+Manual program and has a characteristic layout with a non-scrolling header. And if the header gets the focus, scrolling of the entire page is blocked. Thus, it is enough to click on the main content and the page scrolling will work properly again.

@ojwb
Copy link
Author

ojwb commented Mar 13, 2024

Oh sorry, I'm using the Debian unstable package kchmviewer 8.0-2 (8.0 seems to be the latest upstream release).

I couldn't see anywhere in the app which tells me the HTML engine in use, but from the dynamic linker it seems to be WebEngine:

$ ldd /usr/bin/kchmviewer | grep Web
	libQt5WebEngineWidgets.so.5 => /lib/x86_64-linux-gnu/libQt5WebEngineWidgets.so.5 (0x00007fed8f43a000)
	libQt5WebEngineCore.so.5 => /lib/x86_64-linux-gnu/libQt5WebEngineCore.so.5 (0x00007fed86a00000)
	libQt5WebChannel.so.5 => /lib/x86_64-linux-gnu/libQt5WebChannel.so.5 (0x00007fed8eab3000)

Thus, it is enough to click on the main content and the page scrolling will work properly again.

This doesn't seem to work for me.

@u-235
Copy link
Contributor

u-235 commented Mar 15, 2024

Well, I built kchmviewer with WebEngine and the pages really don't scroll, unlike the WebKit version of the app. And it seems to be a problem in the application code. Unfortunately, I don't know what can be fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants