Feature Requests item #1830041, was opened at 2007-11-11 12:33
Message generated for change (Comment added) made by hansonr
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=379136&aid=1830041&group_id=23629
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Interface Improvements
Group: None
>Status: Closed
Priority: 5
Private: No
Submitted By: Won Kyu Park (wkpark)
>Assigned to: Bob Hanson (hansonr)
Summary: shift-right mouse drag gesture
Initial Comment:
Is it intutive to rotate a molecular with mouse Shift-right click and drag
action ?
I suggest a simple patch against the MouseManager.java file and it fix the
action of shift-right.
-------------
case SHIFT_RIGHT: // the one-button Mac folks won't get this gesture
+ if (Math.abs(deltaY) > 5 * Math.abs(deltaX)) {
+ if (xCurrent < viewer.getScreenWidth()/2) deltaY*=-1;
+ viewer.rotateZBy(-deltaY);
+ }
+ if (yCurrent > viewer.getScreenHeight()/2) deltaX*=-1;
viewer.rotateZBy(-deltaX);
break;
-------------
----------------------------------------------------------------------
>Comment By: Bob Hanson (hansonr)
Date: 2007-11-11 16:57
Message:
Logged In: YES
user_id=1082841
Originator: NO
Great idea. Implemented in 11.3.44 as:
case SHIFT_RIGHT: // the one-button Mac folks won't get this gesture
viewer.rotateZBy((Math.abs(deltaY) > 5 * Math.abs(deltaX)
? (xCurrent < viewer.getScreenWidth() / 2 ? deltaY : -deltaY) :
0)
+ (yCurrent > viewer.getScreenHeight() / 2 ? deltaX :
-deltaX));
break;
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=379136&aid=1830041&group_id=23629
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Jmol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers