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'), {