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

MSDocRenderer keep reloading the file when scrolling on mobile web browser #239

Open
xzhuah opened this issue Apr 18, 2024 · 0 comments
Open

Comments

@xzhuah
Copy link

xzhuah commented Apr 18, 2024

I am using the following code to render MsDoc file on my web page:

<DocViewer documents={[{uri: src, fileType: "doc", fileName: name}]} key={src} pluginRenderers={[MSDocRenderer]} style={{ width: "100%", height: "70svh", maxHeight: "100%" }}/>

It works on Desktop.

But when I test it on mobile web browser, As long as I scroll my screen, the iframe would reload the file, making it unusable.

Also when on Desktop, if I change my browser screen width, it will also causing the iframe to reload.

Here is a video showing what I see: https://www.youtube.com/shorts/K_n4Xr_EFEE

Anyone knows what might be wrong here?

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

1 participant