Skip to content

Commit

Permalink
Disable tap to zoom on IOS10+
Browse files Browse the repository at this point in the history
  • Loading branch information
hodgef committed Jul 13, 2018
1 parent 4206e02 commit 94c14df
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build/css/index.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/css/index.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "simple-keyboard",
"version": "2.3.6",
"version": "2.3.7",
"description": "On-screen Virtual Keyboard",
"main": "build/index.js",
"scripts": {
Expand Down
12 changes: 11 additions & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="theme-color" content="#000000">
<!--
manifest.json provides metadata used when your web app is added to the
Expand All @@ -20,6 +20,16 @@
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>simple-keyboard</title>
<style>
/**
* Disabling double-tap to zoom in iOS 10+
* as it interferes with simple-keyboard
*/
body,
html {
touch-action: manipulation;
}
</style>
</head>
<body>
<noscript>
Expand Down
1 change: 1 addition & 0 deletions src/lib/components/Keyboard.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ body, html {
user-select: none;
box-sizing: border-box;
overflow: hidden;
touch-action: manipulation;
}

.simple-keyboard .hg-row {
Expand Down

0 comments on commit 94c14df

Please sign in to comment.