mobile-navigation-controller
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -37,7 +37,2 @@ 'use strict'; | ||
/* | ||
let newProps = ... clone...(props) | ||
this.props = newProps; | ||
*/ | ||
var _this = _possibleConstructorReturn(this, (Navigator.__proto__ || Object.getPrototypeOf(Navigator)).call(this, props)); | ||
@@ -359,3 +354,3 @@ | ||
(0, _jquery2.default)('#' + goToPage).removeClass('hiddenPage'); | ||
(0, _jquery2.default)('#' + goToPage).addClass('showPage'); | ||
(0, _jquery2.default)('#' + goToPage).addClass('showPage overflow_Y_hidden'); | ||
} | ||
@@ -370,7 +365,9 @@ } | ||
onTouchEnd: function onTouchEnd(e) { | ||
var goToPage = _this4.state.historyPages[_this4.state.historyPages.length - 2]; | ||
if (fthis.swipeRight && fthis.state.swipeRight_x > 80) { | ||
var goToPage = _this4.state.historyPages[_this4.state.historyPages.length - 2]; | ||
fthis.callbackFunOnChangePage = function () { | ||
(0, _jquery2.default)('#' + fthis.touchBackPage).css('left', ""); | ||
(0, _jquery2.default)('#' + goToPage).removeClass('overflow_Y_hidden'); | ||
fthis.setState({ swipeRight_x: 0 }); | ||
@@ -382,15 +379,13 @@ fthis.swipeRight = false; | ||
if (fthis.swipeRight && fthis.state.swipeRight_x > 80) { | ||
// fthis.touchBackPage = nowPage; | ||
fthis.back(); | ||
} else { | ||
(0, _jquery2.default)('#' + nowPage).css('left', ""); | ||
(0, _jquery2.default)('#' + goToPage).css('z-index', ""); | ||
(0, _jquery2.default)('#' + nowPage).css('z-index', ""); | ||
(0, _jquery2.default)('#' + goToPage).removeClass('showPage'); | ||
(0, _jquery2.default)('#' + goToPage).addClass('hiddenPage'); | ||
fthis.setState({ swipeRight_x: 0 }); | ||
fthis.swipeRight = false; | ||
fthis.touchBackPage = ""; | ||
} | ||
// fthis.touchBackPage = nowPage; | ||
fthis.back(); | ||
} else { | ||
(0, _jquery2.default)('#' + nowPage).css('left', ""); | ||
(0, _jquery2.default)('#' + goToPage).css('z-index', ""); | ||
(0, _jquery2.default)('#' + nowPage).css('z-index', ""); | ||
(0, _jquery2.default)('#' + goToPage).removeClass('showPage'); | ||
(0, _jquery2.default)('#' + goToPage).addClass('hiddenPage'); | ||
fthis.setState({ swipeRight_x: 0 }); | ||
fthis.swipeRight = false; | ||
fthis.touchBackPage = ""; | ||
} | ||
@@ -397,0 +392,0 @@ |
{ | ||
"name": "mobile-navigation-controller", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "Navigator for JavaScript mobile app, This will help you to manage your pages history in the app and change pages with animation.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
232085
5781