TypeError: Cannot read property 'keyframesArea' of undefined
ericmaicon opened this issue · 1 comments
ericmaicon commented
When I use the react version, it doesn't work as this.scrollArea
is not defined.
I didn't see in the code a place where it is intialize..
import Timeline, { SelectEvent } from 'react-scenejs-timeline';
<Timeline
scene={scene}
keyboard={true}
onSelect={(e: SelectEvent) => {
console.log(e.selectedItem);
}}
/>
ericmaicon commented
So an update here is probably related with an empty scene...after digging into it, the error is gone.
Thanks btw