anvaka / ngraph.pixel

Fast graph renderer based on low level ShaderMaterial from three.js
https://github.com/anvaka/ngraph.pixel#demo
MIT License
319 stars 45 forks source link

Fixed bug in mouse coordinates. #17

Open wakass opened 4 years ago

wakass commented 4 years ago

hey there, I found and fixed a small bug in the setting of mouse coordinates when doing hittests. This allows for correct behaviour when embedding in e.g. a bigger document where there is scrolling and the container is moving around the screen.