Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

test - check different targets b/w start & end.

  • Loading branch information...
commit e6fb8d8e4022d3584709a56cd0164cde7d6ee0a0 1 parent b1299f1
@ngryman authored
Showing with 9 additions and 0 deletions.
  1. +9 −0 test/jquery.finger_test.js
View
9 test/jquery.finger_test.js
@@ -184,6 +184,15 @@
done();
}, 50, 0);
});
+
+ it('should not fire when another target is under the pointer before release', function() {
+ var handler = sinon.spy();
+ this.$elems.on('tap', handler);
+ this.tapStart();
+ this.cursorPos.y = 100;
+ this.tapEnd();
+ handler.should.not.have.been.called;
+ });
});
describe('press event', function() {
Please sign in to comment.
Something went wrong with that request. Please try again.