anvaka / VivaGraphJS

Graph drawing library for JavaScript
Other
3.75k stars 425 forks source link

Interactive "scroll" throws TypeError #137

Closed wehriam closed 9 years ago

wehriam commented 9 years ago
Uncaught TypeError: Cannot read property 'onScroll' of undefined
listenToEvents @ vivagraph.js:4585
run @ vivagraph.js:4246
window.onload @ (index):49

See: https://jsfiddle.net/pp95tq0s/

Adding containerDrag = dragndrop(container); at line 442 of https://github.com/anvaka/VivaGraphJS/blob/master/src/View/renderer.js resolves the issue, but I don't know if that's a good idea.

anvaka commented 9 years ago

I think you are right. Thanks for reporting the bug. It should be fixed in 0.7.12