Skip to content
Snippets Groups Projects
Unverified Commit 8f6abbbd authored by xgui3783's avatar xgui3783 Committed by GitHub
Browse files

Merge pull request #98 from FZJ-INM1-BDA/chore/mobileUI

chore: fix pinch rotation
parents 623812a6 ee947852
No related branches found
No related tags found
No related merge requests found
......@@ -229,6 +229,7 @@ export class NehubaViewerTouchDirective implements OnDestroy{
)
const ori = this.ngViewer.navigationState.pose.orientation.orientation
vec3.transformQuat(axis, axis, ori)
vec3.normalize(axis, axis)
this.ngViewer.navigationState.pose.rotateRelative(axis, theta)
}),
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment