Skip to content

Commit

Permalink
touchmove doesn't fire as many events as before.
Browse files Browse the repository at this point in the history
Next step: jslint + touchenter+touchleave
  • Loading branch information
molant committed Jul 21, 2011
1 parent a9ee1c6 commit a19d52e
Show file tree
Hide file tree
Showing 2 changed files with 249 additions and 206 deletions.
5 changes: 2 additions & 3 deletions index.htm
Expand Up @@ -44,8 +44,7 @@
</div>
<script>
$(document).ready(function () {
$('#add').click(function () {
var log = window.console.log;
$('#add').click(function () {
function touchstart(evt) {
var touchEvent = evt.touches[0];
log('touchstart Grey');
Expand All @@ -65,7 +64,7 @@

TOUCH.addEventListener('touchmove', 'touch', function (evt) {
var touchEvent = evt.touches[0];
log('touchmove Grey: ' + touchEvent.clientX + ' ' + touchEvent.clientY);
log('touchmove Grey: ' + touchEvent.clientX + ' ' + touchEvent.clientY + ' ' + touchEvent.identifier + ' ' + touchEvent.timespan);
});
});
});
Expand Down

0 comments on commit a19d52e

Please sign in to comment.