Skip to content

Commit

Permalink
helps with tap threshold for #636
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkfranz committed Dec 3, 2014
1 parent d876f26 commit 7781fda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/extensions/renderer.canvas.load-and-listeners.js
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@
if(e.preventDefault) e.preventDefault();
return false;
}
}, 1000/30), false);
}, 1000/30, { leading: true }), false);

r.registerBinding(window, 'mouseup', function(e) {
// console.log('--\nmouseup', e)
Expand Down Expand Up @@ -1607,7 +1607,7 @@
for (var j=0; j<now.length; j++) { earlier[j] = now[j]; }
//r.redraw();

}, 1000/30), false);
}, 1000/30, { leading: true }), false);

r.registerBinding(window, 'touchcancel', function(e) {
var start = r.touchData.start;
Expand Down

0 comments on commit 7781fda

Please sign in to comment.