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. #121

Closed birdinforest closed 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.