Skip to content

Commit

Permalink
Add touchstart for swiping back in
Browse files Browse the repository at this point in the history
  • Loading branch information
goldfire committed Oct 6, 2017
1 parent 207689e commit d389f93
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/howler.core.js
Expand Up @@ -332,11 +332,13 @@
self.mobileAutoEnable = false;

// Remove the touch start listener.
document.removeEventListener('touchstart', unlock, true);
document.removeEventListener('touchend', unlock, true);
};
};

// Setup a touch start listener to attempt an unlock in.
document.addEventListener('touchstart', unlock, true);
document.addEventListener('touchend', unlock, true);

return self;
Expand Down

0 comments on commit d389f93

Please sign in to comment.