This seems to work nicely -- more of a "press and hold" rather than "press
and go"


    @Override
    public void mousePressed(MouseEvent e) {
      vwr.evalStringQuiet(script);
      vwr.evalStringQuiet("animation_running = true; delay 0.5;
if(animation_running){timeout '__animBtn' -200 \"" + script + "\"}");
    }

    @Override
    public void mouseReleased(MouseEvent e) {
      vwr.evalStringQuiet("animation_running = false; timeout '__animBtn'
OFF");
    }



On Tue, Apr 8, 2014 at 2:44 PM, Robert Hanson <[email protected]> wrote:

> I could set a 500-ms initial delay.
>
>
> On Tue, Apr 8, 2014 at 3:20 AM, Angel Herráez <[email protected]>wrote:
>
>> Yes, I also think it is better to delay that.
>> I have seen jumps of 2-3 frames for quite some time now when using
>> the Jmol application toolbar, and it's quite difficult to get to the
>> frame you want.
>> And for animation there are entries available in the menu.
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Put Bad Developers to Shame
>> Dominate Development with Jenkins Continuous Integration
>> Continuously Automate Build, Test & Deployment
>> Start a new project now. Try Jenkins in the cloud.
>> http://p.sf.net/sfu/13600_Cloudbees
>> _______________________________________________
>> Jmol-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/jmol-users
>>
>
>
>
> --
> Robert M. Hanson
> Larson-Anderson Professor of Chemistry
> St. Olaf College
> Northfield, MN
> 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
>
>


-- 
Robert M. Hanson
Larson-Anderson Professor of Chemistry
St. Olaf College
Northfield, MN
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
------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to