Skip to content
This repository was archived by the owner on Jan 4, 2021. It is now read-only.

Commit 40676e6

Browse files
author
Francois-Xavier Gentilhomme
committed
[DEV] Add touch-action=none hack for safari
1 parent 89d8013 commit 40676e6

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

demo/index.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@
22
<html>
33
<head>
44
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
5+
<meta name="apple-mobile-web-app-capable" content="yes">
6+
<meta name="mobile-web-app-capable" content="yes">
57
<meta name="HandheldFriendly" content="true"/>
8+
69
<title>myscript-text demo</title>
10+
711
<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
812
<link rel="import" href="../../iron-ajax/iron-ajax.html">
913
<link rel="import" href="../../iron-flex-layout/iron-flex-layout-classes.html">
@@ -27,7 +31,7 @@
2731
width: 250px;
2832
}
2933
</style>
30-
<body unresolved>
34+
<body touch-action="none" unresolved>
3135
<template id="app" is="dom-bind">
3236
<iron-ajax
3337
auto

demo/superimposed.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@
22
<html>
33
<head>
44
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
5+
<meta name="apple-mobile-web-app-capable" content="yes">
6+
<meta name="mobile-web-app-capable" content="yes">
57
<meta name="HandheldFriendly" content="true"/>
8+
69
<title>myscript-text demo</title>
10+
711
<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
812
<link rel="import" href="../../iron-ajax/iron-ajax.html">
913
<link rel="import" href="../../iron-flex-layout/iron-flex-layout-classes.html">
@@ -30,7 +34,7 @@
3034
width: 250px;
3135
}
3236
</style>
33-
<body unresolved>
37+
<body touch-action="none" unresolved>
3438
<template id="app" is="dom-bind">
3539
<iron-ajax
3640
auto

index.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
<!doctype html>
22
<html>
33
<head>
4-
54
<meta charset="utf-8">
65
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
6+
<meta name="apple-mobile-web-app-capable" content="yes">
7+
<meta name="mobile-web-app-capable" content="yes">
78
<meta name="HandheldFriendly" content="true" />
89

910
<script src="../webcomponentsjs/webcomponents-lite.js"></script>
@@ -15,7 +16,7 @@
1516
}
1617
</style>
1718
</head>
18-
<body unresolved>
19+
<body touch-action="none" unresolved>
1920

2021
<iron-component-page></iron-component-page>
2122

0 commit comments

Comments
 (0)