From 31bc2aba62229249e69aff6a42904c23cd7c6f26 Mon Sep 17 00:00:00 2001 From: Amrit Kahlon Date: Wed, 5 Jun 2019 11:44:57 -0700 Subject: [PATCH] Removed android backbutton as it is a cordova feature --- lib/FullScreen.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/lib/FullScreen.js b/lib/FullScreen.js index 0f1b2f7..0464f09 100644 --- a/lib/FullScreen.js +++ b/lib/FullScreen.js @@ -71,8 +71,6 @@ function (_ImageViewer) { // escape listener document.removeEventListener('keyup', _this._events.escapeListener); - // Android back button listener - document.removeEventListener('backbutton', _this._events.androidBackButtonListener); (0, _util.removeCss)(document.querySelector('html'), 'overflow'); // remove window event @@ -115,13 +113,6 @@ function (_ImageViewer) { } document.addEventListener('keyup', this._events.escapeListener); - // Android back button listener - this._events.androidBackButtonListener = (e) => { - this.hide(); - e.preventDefault(); - } - document.addEventListener('backbutton', this._events.androidBackButtonListener); - this._events.onWindowResize = (0, _util.assignEvent)(window, 'resize', this.refresh); // disable scroll on html (0, _util.css)(document.querySelector('html'), {