Skip to content

Commit

Permalink
Removed android backbutton as it is a cordova feature
Browse files Browse the repository at this point in the history
  • Loading branch information
amritk committed Jun 5, 2019
1 parent f6040b7 commit 31bc2ab
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions lib/FullScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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'), {
Expand Down

0 comments on commit 31bc2ab

Please sign in to comment.