Skip to content

Commit eb9b241

Browse files
AmirMohammad CheraghaliAmirMohammad Cheraghali
authored andcommitted
Adjust NGL viewer controls sensitivity to match Mol*
1 parent 48511ed commit eb9b241

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/components/ProteinViewer.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1509,6 +1509,14 @@ export const ProteinViewer = forwardRef<ProteinViewerRef, ProteinViewerProps>(({
15091509
alpha: true // Enable transparency support
15101510
}
15111511
});
1512+
1513+
// Adjust Sensitivity to match Mol* feel (Slower/Smoother)
1514+
stage.setParameters({
1515+
rotateSpeed: 0.5,
1516+
zoomSpeed: 0.5,
1517+
panSpeed: 0.5
1518+
});
1519+
15121520
stageRef.current = stage;
15131521

15141522
// --- HOVER HANDLING (HUD) ---

0 commit comments

Comments
 (0)