mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-29 02:01:43 +00:00
Adds < and > keyboard shortcuts for next/prev metric-on-canvas
This commit is contained in:
6
client/app/scripts/utils/math-utils.js
Normal file
6
client/app/scripts/utils/math-utils.js
Normal file
@@ -0,0 +1,6 @@
|
||||
|
||||
// http://stackoverflow.com/questions/4467539/javascript-modulo-not-behaving
|
||||
export function modulo(i, n) {
|
||||
return ((i % n) + n) % n;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user