Skip to content

Commit

Permalink
fix: only add maximum-scale if zoom is allowed
Browse files Browse the repository at this point in the history
  • Loading branch information
LonelyCpp committed Jan 17, 2021
1 parent f9c75e9 commit 68f8421
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PlayerScripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export const MAIN_SCRIPT = (

// scale will either be "initial-scale=1.0"
let scale = `initial-scale=${contentScale_s}`;
if (allowWebViewZoom) {
if (!allowWebViewZoom) {
// or "initial-scale=0.8, maximum-scale=1.0"
scale += `, maximum-scale=${contentScale_s}`;
}
Expand Down

0 comments on commit 68f8421

Please sign in to comment.