Refactor code structure for improved readability and maintainability
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
// lib/scrollBus.ts
|
||||
export interface ScrollBusState {
|
||||
current: number;
|
||||
velocity: number;
|
||||
progress: number;
|
||||
}
|
||||
|
||||
export const scrollBus: ScrollBusState = {
|
||||
current: 0,
|
||||
velocity: 0,
|
||||
progress: 0,
|
||||
};
|
||||
Reference in New Issue
Block a user