Adds < and > keyboard shortcuts for next/prev metric-on-canvas

This commit is contained in:
Simon Howe
2016-03-09 10:15:59 +01:00
parent a104962aa2
commit cc3d392010
6 changed files with 48 additions and 20 deletions

View File

@@ -0,0 +1,6 @@
// http://stackoverflow.com/questions/4467539/javascript-modulo-not-behaving
export function modulo(i, n) {
return ((i % n) + n) % n;
}