Socket
Socket
Sign inDemoInstall

mobile-navigation-controller

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mobile-navigation-controller - npm Package Compare versions

Comparing version 1.0.8 to 1.0.9

35

dist/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc