Skip to content

Commit f8304cc

Browse files
committed
💡 Add note
1 parent 5e95142 commit f8304cc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎src/composables/useScale.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ export const useScale = (viewportStart: Ref<number>, viewportEnd: Ref<number>, v
4848
// #region default-scales
4949
{
5050
// every 100ms, 1 second or 10 seconds
51+
// NOTE: .1 seconds is used here instead of 100ms, so the first ms that would align with the gridline
52+
// (that provides the label) is shown when only the next occuring ms are within the viewport
5153
unit: 'seconds',
5254
steps: [.1, 1, 10],
5355
},

0 commit comments

Comments
 (0)