3Dmol.js
3Dmol.js copied to clipboard
Enable Model Translation on Right-Click and Mouse Movement.
Is your feature request related to a problem? Please describe.
Currently, when I right-click
and move my mouse, the model zooms in or out. However, I believe it would be more intuitive if the model could translate instead. We often observe this functionality in open-source projects like three.js
and p5.js
, where users can easily manipulate the entire model for better viewing.
Describe the solution you'd like
I understand that model translation can be achieved by pressing Ctrl + Left Click
, but this might not be immediately apparent to all users and could require referring to the documentation. Therefore, I suggest implementing a feature where right-clicking
and moving the mouse would trigger model translation. This enhancement would not only make the interaction more user-friendly but also streamline the viewing experience for users. Currently, scrolling the mouse-wheel
zooms the model in or out. Therefore, the right-click
button should not serve the same function; instead, it should translate the model.
Additional context(Optional)
If we address this issue, we can also update the documentation accordingly.
Please close your issue when you feel it has been adequately resolved
I'd like to hear your thoughts on this plan, @dkoes . Please let me know if you agree with this implementation approach or if you have any other suggestions.
Also, I'm considering ways to optimize our model's processing time. It seems that frame rates decrease when we handle complex models. Initially, I thought implementing framebuffers
would be beneficial, but I guess we already utilize them. Do you have any suggestions for optimizing model processing time further?
It would be great if any mentainer share there thoughts on this issue. :)
The controls mimic pymol and will not be changed. Having alternative control sets would be an option.