Skip to content

Commit 8dbd685

Browse files
committed
Revert "@0.0.1"
This reverts commit 6a76068.
1 parent fb8251e commit 8dbd685

File tree

3 files changed

+0
-50
lines changed

3 files changed

+0
-50
lines changed

dist/index.js

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,7 @@ var Navigator = function (_React$Component) {
7171
startPage: startPage,
7272
mobileMode: mobileMode,
7373
swipeRight_x: 0,
74-
<<<<<<< HEAD
7574
swipeRightStart_x: 0,
76-
=======
77-
>>>>>>> parent of 6a76068... @0.0.1
7875
props: []
7976
};
8077

@@ -334,10 +331,6 @@ var Navigator = function (_React$Component) {
334331
value: function render() {
335332
var _this4 = this;
336333

337-
<<<<<<< HEAD
338-
=======
339-
// debugger
340-
>>>>>>> parent of 6a76068... @0.0.1
341334
var fthis = this;
342335
// window.navigation_controller = this;
343336
var nowPage = this.state.historyPages[this.state.historyPages.length - 1];
@@ -360,7 +353,6 @@ var Navigator = function (_React$Component) {
360353
return _react2.default.createElement(
361354
'div',
362355
{
363-
<<<<<<< HEAD
364356
// onTouchStart={(e) => {
365357

366358

@@ -373,14 +365,6 @@ var Navigator = function (_React$Component) {
373365
fthis.touchBackPage = nowPage;
374366
fthis.swipeRight = true;
375367
fthis.setState({ swipeRightStart_x: e.touches[0].clientX });
376-
=======
377-
onTouchStart: function onTouchStart(e) {
378-
if (child.props.backOnSwipeRight) {
379-
if (e.touches[0].clientX < 0.20 * innerWidth) {
380-
fthis.touchBackPage = nowPage;
381-
fthis.swipeRight = true;
382-
fthis.setState({ swipeRight_x: e.touches[0].clientX });
383-
>>>>>>> parent of 6a76068... @0.0.1
384368

385369
var goToPage = _this4.state.historyPages[_this4.state.historyPages.length - 2];
386370

@@ -390,15 +374,8 @@ var Navigator = function (_React$Component) {
390374
(0, _jquery2.default)('#' + goToPage).addClass('showPage overflow_Y_hidden');
391375
}
392376
}
393-
<<<<<<< HEAD
394377
if (fthis.swipeRight) {
395378
fthis.setState({ swipeRight_x: e.touches[0].clientX - fthis.state.swipeRightStart_x <= 0 ? 1 : e.touches[0].clientX - fthis.state.swipeRightStart_x });
396-
=======
397-
},
398-
onTouchMove: function onTouchMove(e) {
399-
if (fthis.swipeRight) {
400-
fthis.setState({ swipeRight_x: e.touches[0].clientX });
401-
>>>>>>> parent of 6a76068... @0.0.1
402379
}
403380
},
404381
onTouchEnd: function onTouchEnd(e) {

package.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
{
22
"name": "react.cordova-navigation_controller",
3-
<<<<<<< HEAD
43
"version": "1.6.4",
5-
=======
6-
"version": "1.6.3",
7-
>>>>>>> parent of 6a76068... @0.0.1
84
"description": "Navigator for Cordova with React.js(react.cordova), This will help you to manage your pages history in the app and change pages with animation.",
95
"main": "dist/index.js",
106
"scripts": {

src/index.js

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,7 @@ export default class Navigator extends React.Component {
5858
startPage: startPage,
5959
mobileMode: mobileMode,
6060
swipeRight_x: 0,
61-
<<<<<<< HEAD
6261
swipeRightStart_x: 0,
63-
=======
64-
>>>>>>> parent of 6a76068... @0.0.1
6562
props: []
6663
}
6764

@@ -342,11 +339,7 @@ export default class Navigator extends React.Component {
342339
}
343340

344341
render() {
345-
<<<<<<< HEAD
346342

347-
=======
348-
// debugger
349-
>>>>>>> parent of 6a76068... @0.0.1
350343
const fthis = this;
351344
// window.navigation_controller = this;
352345
const nowPage = this.state.historyPages[this.state.historyPages.length - 1];
@@ -369,7 +362,6 @@ export default class Navigator extends React.Component {
369362
return Array.isArray(this.props.children)
370363
? this.props.children.map(child => {
371364
return <div
372-
<<<<<<< HEAD
373365
// onTouchStart={(e) => {
374366

375367

@@ -382,14 +374,6 @@ export default class Navigator extends React.Component {
382374
fthis.touchBackPage = nowPage;
383375
fthis.swipeRight = true;
384376
fthis.setState({ swipeRightStart_x: e.touches[0].clientX });
385-
=======
386-
onTouchStart={(e) => {
387-
if (child.props.backOnSwipeRight) {
388-
if (e.touches[0].clientX < (0.20 * innerWidth)) {
389-
fthis.touchBackPage = nowPage;
390-
fthis.swipeRight = true;
391-
fthis.setState({ swipeRight_x: e.touches[0].clientX });
392-
>>>>>>> parent of 6a76068... @0.0.1
393377

394378
const goToPage = this.state.historyPages[this.state.historyPages.length - 2];
395379

@@ -400,15 +384,8 @@ export default class Navigator extends React.Component {
400384
}
401385

402386
}
403-
<<<<<<< HEAD
404387
if (fthis.swipeRight) {
405388
fthis.setState({ swipeRight_x: (e.touches[0].clientX - fthis.state.swipeRightStart_x) <= 0 ? 1 : e.touches[0].clientX - fthis.state.swipeRightStart_x });
406-
=======
407-
}}
408-
onTouchMove={(e) => {
409-
if (fthis.swipeRight) {
410-
fthis.setState({ swipeRight_x: e.touches[0].clientX });
411-
>>>>>>> parent of 6a76068... @0.0.1
412389
}
413390
}}
414391
onTouchEnd={(e) => {

0 commit comments

Comments
 (0)