Skip to content
This repository was archived by the owner on Sep 17, 2024. It is now read-only.

Commit a589cec

Browse files
author
DEWITTE Pierre-Alban
committed
[React] Add pointer event polyfill and touch-action: none in css to have an exemple fully working on mobile devices emulators
1 parent fb5ca8d commit a589cec

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

react-integration-examples/public/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
-->
1111
<link rel="manifest" href="%PUBLIC_URL%/manifest.json">
1212
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
13+
<script src="https://code.jquery.com/pep/0.4.3/pep.js"></script>
1314
<!--
1415
Notice the use of %PUBLIC_URL% in the tags above.
1516
It will be replaced with the URL of the `public` folder during the build.

react-integration-examples/src/App.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@ import * as MyScriptJS from 'myscript'
55
import 'myscript/dist/myscript.min.css';
66

77
const editorStyle = {
8-
'minWidth': '500px',
9-
'minHeight': '500px',
8+
'minWidth': '100px',
9+
'minHeight': '100px',
10+
'width': '100vw',
11+
'height': 'calc(100vh - 190px)',
12+
'touch-action': 'none',
1013
};
1114

1215
class App extends Component {
@@ -32,8 +35,8 @@ class App extends Component {
3235
server: {
3336
scheme: 'https',
3437
host: 'webdemoapi.myscript.com',
35-
applicationKey: 'xxxxxx',
36-
hmacKey: 'xxxxxx',
38+
applicationKey: '1463c06b-251c-47b8-ad0b-ba05b9a3bd01',
39+
hmacKey: '60ca101a-5e6d-4159-abc5-2efcbecce059',
3740
},
3841
},
3942
});

0 commit comments

Comments
 (0)