Pinch-to-Zoom doesn't work without setting scalesPageToFit={true} explicitly on WebView component.
See original GitHub issueIs this a bug report?
Yes
Have you read the Contributing Guidelines?
(Write your answer here.)
Environment
Steps to Reproduce
(Write your steps here:)
- Make a WebView Component
- Set the source attribute to have a uri value of a PDF.
- 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:
- Created 6 years ago
- Comments:6
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m still facing same problem here.
Closing but feel free to keep discussing on the new repo