question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pinch-to-Zoom doesn't work without setting scalesPageToFit={true} explicitly on WebView component.

See original GitHub issue

Is this a bug report?

Yes

Have you read the Contributing Guidelines?

(Write your answer here.)

Environment

Steps to Reproduce

(Write your steps here:)

  1. Make a WebView Component
  2. Set the source attribute to have a uri value of a PDF.
  3. You’ll notice that you can’t pinch-to-zoom without explicitly setting scalesPageToFit={true}. Even though the docs say that it is set to true by default, it appears it is not.

Expected Behavior

The pinch-to-zoom behavior should be there without setting scalesPageToFit equal to true, explicitly.

Actual Behavior

Pinch-to-zoom doesn’t work without setting the scalesPageToFit explicitly.

Reproducible Demo

(Paste the link to an example project and exact instructions to reproduce the issue.)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
RafaelRVianacommented, Jun 25, 2018

I’m still facing same problem here.

0reactions
Titozzzcommented, Sep 26, 2018

Closing but feel free to keep discussing on the new repo

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why does pinch-to-zoom not work in my Android WebView?
The page loads just fine, but I can't pinch to zoom. I've tried different combinations of the WebView settings (above, including others not...
Read more >
UIWebView scalesPageToFit = true d… - Apple Developer
I'm new to IOS Swift and need some help. No matter what I do, the webpage won't scale to fit the UIwebview. Please...
Read more >
React-native webview turn off zoom
The docs claim that it defaults to true, but for some reason, unless scalePageToFit is explicitly set to true in your WebView component,...
Read more >
flexcel-conceptual-docs-net.pdf - Tmssoftware
If you prefer not to work with nuget packages, FlexCel setup also installs the ... Note how the actual value of the cell...
Read more >
Why Does Reactnative Webview Load Page Super Zoomed ...
Zooming in and out with multitouch gestures such as pinchtozoom can be disabled ... the same issue as I didn't explicitly set 'scalesPageToFit'...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found