Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added 'tap' event to the popup click handlers #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions assets/js/jquery.popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
popup = new $.Popup(settings);

$(document)
.on('click.popup', selector, function(e){
.on('click.popup tap.popup', selector, function(e){

var content = settings && settings.content
? settings.content
Expand Down Expand Up @@ -287,10 +287,10 @@
opacity : p.o.backOpacity
}, p.o.speed);

// If modal isn't specified, bind click event
// If modal isn't specified, bind click and tap events
if( !p.o.modal ){

$back.one('click.popup', function(){
$back.one('click.popup tap.popup', function(){
p.close();
});

Expand Down Expand Up @@ -471,7 +471,7 @@

// Add in the close button
$close = $(p.o.closeContent)
.one('click', function(){
.one('click tap', function(){

p.close();

Expand Down
6 changes: 3 additions & 3 deletions assets/js/jquery.popup.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.