Browse Source

修改微信滚动问题

Z F 7 years ago
parent
commit
1b62022a65
3 changed files with 6 additions and 2 deletions
  1. 1 1
      app/src/App.js
  2. 5 1
      app/src/index.js
  3. 0 0
      build/react-dragger-layout.js

+ 1 - 1
app/src/App.js

@@ -399,7 +399,7 @@ export default class LayoutDemo extends React.Component {
         return (
             <DraggerLayout layout={layout} width={document.body.clientWidth} col={12}>
                 {layout.map((el, index) => {
-                    return (<div key={index}>{index}</div>)
+                    return (<div key={index} >{index}</div>)
                 })}
             </DraggerLayout>
         )

+ 5 - 1
app/src/index.js

@@ -9,4 +9,8 @@ ReactDOM.render(
         <LayoutDemo />
     </div>,
     document.getElementById('root')
-);
+);
+
+document.body.addEventListener('touchmove', function (event) {
+    event.preventDefault();
+}, false);

File diff suppressed because it is too large
+ 0 - 0
build/react-dragger-layout.js


Some files were not shown because too many files changed in this diff