Open clementroche opened 10 months ago
Hello! I see that many types are typed as any
in dist/types.
Would it be helpful to open a PR and make those types a bit narrower? Or are you working on it already?
@Myphz PR are always welcome
@Myphz PR are always welcome
I opened https://github.com/darkroomengineering/lenis/pull/345 to improve TypeScript support. Let me know if everything's ok! Thank you
Hi @clementroche regarding rename options correctly (eg: syncTouch -> touch.sync)
, you are talking about renaming and also refactoring the options passed on Lenis instantiation?
E.G:
const lenis = new Lenis({
lerp: 0.1,
touch: {
sync: false,
syncLerp: 0.075,
inertiaMultiplier: 35
},
});
Hi @clementroche regarding
rename options correctly (eg: syncTouch -> touch.sync)
, you are talking about renaming and also refactoring the options passed on Lenis instantiation?E.G:
const lenis = new Lenis({ lerp: 0.1, touch: { sync: false, syncLerp: 0.075, inertiaMultiplier: 35 }, });
Yes @giuliobracci
const lenis = new Lenis({
wheel: {
lerp: 0.1,
},
touch: {
sync: false,
lerp: 0.075,
inertiaMultiplier: 35
},
});
List
syncTouch
How can you help ?