Skip to content

Commit

Permalink
tap position check when menu is to the left (closes #29)
Browse files Browse the repository at this point in the history
  • Loading branch information
hakimel committed Jun 29, 2013
1 parent 1bb6a1d commit 2d320c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/meny.js
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ var Meny = {
var isOverContent = ( config.position === POSITION_T && touchStartY > config.height ) ||
( config.position === POSITION_R && touchStartX < dom.wrapper.offsetWidth - config.width ) ||
( config.position === POSITION_B && touchStartY < dom.wrapper.offsetHeight - config.height ) ||
( config.position === POSITION_L && touchStartX < config.width );
( config.position === POSITION_L && touchStartX > config.width );

if( isOverContent ) {
close();
Expand Down

0 comments on commit 2d320c3

Please sign in to comment.