daybrush/scenejs-timeline

TypeError: Cannot read property 'keyframesArea' of undefined

ericmaicon opened this issue · 1 comments

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);
          }}
        />

image

So an update here is probably related with an empty scene...after digging into it, the error is gone.

Thanks btw