Skip to content

Commit

Permalink
Merge pull request #20 from yuhua-chen/michael
Browse files Browse the repository at this point in the history
Remove unnecessary `preventDefault()` which caused failure trigger event on iOS.
  • Loading branch information
ravewill123 committed Aug 11, 2014
2 parents ea15d8a + 3645405 commit aebdcaf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions js/mawbutton.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
var supportEvent = ('ontouchstart' in window ) ? 'touchstart':'mousedown';
$this.addClass('mawbutton')
.on(supportEvent, function(e) { //bind touch/click event
e.preventDefault();
$this.append('<div class="mawbutton-'+settings.effect+'"></div>');
$this.append('<div class="mawbutton-'+settings.effect+'"></div>');
// Fetch click position and size
var posX = $this.offset().left,
posY = $this.offset().top;
Expand Down

0 comments on commit aebdcaf

Please sign in to comment.