pissang / claygl

A WebGL graphic library for building scalable Web3D applications
http://claygl.xyz/
BSD 2-Clause "Simplified" License
2.81k stars 302 forks source link

Normalize panning direction. #122

Open birdinforest opened 4 years ago

birdinforest commented 4 years ago

Do normalization on panning direction. I think this should be a propal practice to make panning works regardless scale of scene node and camera node.

In our case we need to scale down whole scene node to make it works with MapBox(Maybe it is.) Panning velocity changes if directions not been normalized.

birdinforest commented 4 years ago

I notice that there is build error from CircleCI for this PR. I don't know much about it, please let me know if I could fix some thing to make it works. Thanks.