Hi Daniel,

  I added a new mouse mode called "center or translate" that center a clicked atom, bond, pseudobond, residue or volume (anything selectable) if you click and release. But if you drag (a minimum of 5 pixels in x or y) it instead translates the scene. The centering happens on button release. You can make this the default for the middle mouse button by putting command

    mouse middle "center or translate"

in ChimeraX preferences, Startup tab, Execute these commands at startup.  This will be in the October 28, 2023 ChimeraX daily build and ChimeraX 1.7 later this year.

  The middle button is by default assigned to the translate mouse mode and I won't change that since users have been using that for years.  Mouse click and mouse drag and double click for a given button cannot be assigned to different modes, each mouse mode defines the behavior for all those actions.  When a double double click occurs the code first gets a single click and generally does the single click operation, and then the double click operation.  So you can't assign a behavior to single click that you don't want to happen for double click unless the code doesn't do the single click operation until after a delay to make sure a double click is not coming.  That provides poor user experience as single click actions all get delayed.  I don't think any software does that.  So single click and double click have to be compatible operations so that single click action does not interfere with the double click.

Tom


On Oct 27, 2023, at 12:30 AM, Daniel Larsson via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:

This option is a great improvement to the utility of ChimeraX. But one problem with this implementation is that panning using the middle-mouse button no longer works. It should be possible to "click-and-hold" differently from a plain "click" and thereby retain the panning functionality. If you make that change, I think this should be the default behavior of the application, as middle-click currently does nothing. 

Another option use "double left-click" for this, as this is not currently used in the GUI and double-click works better on a track-pad. Actually, it would be nice to have the ability to set the action for double-clicking in a menu similar to the current "right mouse" menu and to set the default option in a preference file.

Regards,
Daniel





On 2023-10-26, 19:41, "Tom Goddard via ChimeraX-users" <chimerax-users@cgl.ucsf.edu <mailto:chimerax-users@cgl.ucsf.edu>> wrote:


Hi Adrián,


You can make the middle mouse button center on a clicked atom using ChimeraX command


mouse middle center


This was added in June after the ChimeraX 1.6 release so you will need a ChimeraX daily build. The ChimeraX 1.7 release out near the end of this year will have it too. To make ChimeraX always start with this muse mode enter the command in the under "Execute these commands at startup" in the Startup tab of the ChimeraX Preferences panel and press the Save button on that panel.


Tom




On Oct 26, 2023, at 3:05 AM, Adrián González López via ChimeraX-users <chimerax-users@cgl.ucsf.edu <mailto:chimerax-users@cgl.ucsf.edu>> wrote:


Hi,

I do not know if this is possible already (I could not find it), but is there a way in ChimeraX to set the middle click mouse button (or any other button) to center and orient the atom you click? Similar to what happens on PyMOL by default. This helps so much when navigating around a structure. I know you can do it in some other way, but it takes more time and it is not so user-friendly.
If there is no way to do this, could it be implemented?

Many thanks!

Best,
Adrián








När du har kontakt med oss på Uppsala universitet med e-post så innebär det att vi behandlar dina personuppgifter. För att läsa mer om hur vi gör det kan du läsa här: http://www.uu.se/om-uu/dataskydd-personuppgifter/ <http://www.uu.se/om-uu/dataskydd-personuppgifter/>

E-mailing Uppsala University means that we will process your personal data. For more information on how this is performed, please read here: http://www.uu.se/en/about-uu/data-protection-policy <http://www.uu.se/en/about-uu/data-protection-policy>

_______________________________________________
ChimeraX-users mailing list -- chimerax-users@cgl.ucsf.edu <mailto:chimerax-users@cgl.ucsf.edu>
To unsubscribe send an email to chimerax-users-leave@cgl.ucsf.edu <mailto:chimerax-users-leave@cgl.ucsf.edu>
Archives: https://mail.cgl.ucsf.edu/mailman/archives/list/chimerax-users@cgl.ucsf.edu <mailto:chimerax-users@cgl.ucsf.edu>/





_______________________________________________
ChimeraX-users mailing list -- chimerax-users@cgl.ucsf.edu <mailto:chimerax-users@cgl.ucsf.edu>
To unsubscribe send an email to chimerax-users-leave@cgl.ucsf.edu <mailto:chimerax-users-leave@cgl.ucsf.edu>
Archives: https://mail.cgl.ucsf.edu/mailman/archives/list/chimerax-users@cgl.ucsf.edu <mailto:chimerax-users@cgl.ucsf.edu>/


VARNING: Klicka inte på länkar och öppna inte bilagor om du inte känner igen avsändaren och vet att innehållet är säkert.
CAUTION: Do not click on links or open attachments unless you recognise the sender and know the content is safe.




_______________________________________________
ChimeraX-users mailing list -- chimerax-users@cgl.ucsf.edu
To unsubscribe send an email to chimerax-users-leave@cgl.ucsf.edu
Archives: https://mail.cgl.ucsf.edu/mailman/archives/list/chimerax-users@cgl.ucsf.edu/