Bob,

Followed instructions in your note step by step. JSmol console does not whine, 
but exactly the same result - color changes with models not responding to drag. 
The entire axes system still rotates as long as I’m not touching an atom. Atoms 
are dead to the world. This is out of the box and no messing with the files.

JavaScript does, however whine on each double click:

java.util.ConcurrentModificationException
corejmol.z.js
[Error] java.util.ConcurrentModificationException
        (anonymous function) (corejmol.z.js, line 314)
        (anonymous function) (corejmol.z.js, line 1867)
        (anonymous function) (corejmol.z.js, line 1863)
        (anonymous function) (corejmol.z.js, line 1851)
        (anonymous function) (corejmol.z.js, line 780)
        (anonymous function) (corejmol.z.js, line 772)
        (anonymous function) (corejmol.z.js, line 2289)
        (anonymous function) (corejmol.z.js, line 752)
        _processEvent (JSmol.min.js, line 282)
        (anonymous function) (JSmol.min.js, line 248)
        dispatch (JSmol.min.js, line 92)
        handle (JSmol.min.js, line 85)



> On May 9, 2015, at 11:56 AM, Robert Hanson <hans...@stolaf.edu> wrote:
> 
> Shouldn't be any difference on a Mac. Left is Left. (I guess Alt may not be 
> Alt....)
> 
> From the jsmol site directory you unzipped, start jsmol.htm, start a console, 
> and clip this in:
> 
> load $caffeine
> set appendnew false
> load append $tylenol
> set picking dragMolecule
> 
> bind "left-double-click" "if(allowrotateSelected){unbind 
> _rotateSelected;background white;set allowRotateSelected false;bind 
> 'left-drag' _dragAtom}else{unbind _dragAtom;background yellow;bind 
> 'left-drag' _rotateSelected ;set allowRotateSelected;}"
> 
> set debugscript
> 
> (making sure that "bind" line is all one line)
> 
> then start double-clicking. It should work. If not, then it is some sort of 
> Mac problem.
> 
> 
> 
> On Fri, May 8, 2015 at 11:55 PM, Otis Rothenberger <osrot...@chemagic.com 
> <mailto:osrot...@chemagic.com>> wrote:
> Bob,
> 
> On Mac with Safari or FF (OS X ), I’m seeing the color changes, but no 
> movement other than normal axis rotation.
> 
> Otis
> 
>> On May 8, 2015, at 11:11 PM, Robert Hanson <hans...@stolaf.edu 
>> <mailto:hans...@stolaf.edu>> wrote:
>> 
>> 
>> 
>> On Fri, May 8, 2015 at 1:33 PM, Otis Rothenberger <osrot...@chemagic.com 
>> <mailto:osrot...@chemagic.com>> wrote:
>> Thanks Bob, but I’m still having problems. This may relate the approach that 
>> I’m using that worked in the past. In this approach, I use the screen as two 
>> of your buttons - i.e. double tap screen to toggle rotate translate modes. 
>> In my code, I guess this double binding could be messing things up. I’m not 
>> sure.
>> 
>> 
>> 
>> This does the trick:
>> 
>> set picking dragMolecule
>> bind "left-double-click" "if(allowrotateSelected){unbind 
>> _rotateSelected;background white;set allowRotateSelected false;bind 
>> 'left-drag' _dragAtom}else{unbind _dragAtom;background yellow;bind 
>> 'left-drag' _rotateSelected ;set allowRotateSelected;}"
>> 
>> 
>> "background" change is just to show it is working.
>> 
>> ------------------------------------------------------------------------------
>> One dashboard for servers and applications across Physical-Virtual-Cloud 
>> Widest out-of-the-box monitoring support with 50+ applications
>> Performance metrics, stats and reports that give you Actionable Insights
>> Deep dive visibility with transaction tracing using APM Insight.
>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y_______________________________________________
>>  
>> <http://ad.doubleclick.net/ddm/clk/290420510;117567292;y_______________________________________________>
>> Jmol-users mailing list
>> Jmol-users@lists.sourceforge.net <mailto:Jmol-users@lists.sourceforge.net>
>> https://lists.sourceforge.net/lists/listinfo/jmol-users 
>> <https://lists.sourceforge.net/lists/listinfo/jmol-users>
> 
> 
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y 
> <http://ad.doubleclick.net/ddm/clk/290420510;117567292;y>
> _______________________________________________
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net <mailto:Jmol-users@lists.sourceforge.net>
> https://lists.sourceforge.net/lists/listinfo/jmol-users 
> <https://lists.sourceforge.net/lists/listinfo/jmol-users>
> 
> 
> 
> 
> -- 
> Robert M. Hanson
> Larson-Anderson Professor of Chemistry
> Chair, Department of Chemistry
> St. Olaf College
> Northfield, MN
> http://www.stolaf.edu/people/hansonr <http://www.stolaf.edu/people/hansonr>
> 
> 
> If nature does not answer first what we want,
> it is better to take what answer we get. 
> 
> -- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
> 
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud 
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y_______________________________________________
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to