It's a 100-ms repeating timeout.
@Override
public void mousePressed(MouseEvent e) {
vwr.evalStringQuiet(script);
vwr.evalStringQuiet("timeout '__animBtn' -100 \"" + script + "\"");
}
@Override
public void mouseReleased(MouseEvent e) {
vwr.evalStringQuiet("timeout '__animBtn' OFF");
}
I suppose we could set that to 200 ms or, better, a variable.
Bob
On Mon, Apr 7, 2014 at 5:12 PM, Anthony Ciani <[email protected]>wrote:
> Dear Jmol Users,
>
>
>
> The Frame Next and Frame Previous buttons seem to have become sticky.
> They continually advance (or recede) frames until the mouse button is
> released or the mouse is moved off of the icon. Behavior is seen on
> Windows, Linux (remote and local Xserv), different Java versions.
>
>
>
> I could see this being a desirable feature, for example, if someone wanted
> an easy way to animate frames, but frames are updated so rapidly that a
> single mouse tap could do 4 or 5 frames. On a slow display interface (e.g.
> X11 over a local network), dozens of frames might be updated, slowly, after
> a single click. The situation is almost unbearable if used over a slow
> network. If "Animate Forward" and "Animate Backward" buttons are desired,
> they should be separate on the menu bar, along with a Frame Rate box.
>
>
>
> This "feature" seems to have been present since 13.0.1. I did some
> searching and found a couple messages about it, but nothing happened. The
> frame command inside the console works as expected. It is only the buttons
> that have become sticky.
>
>
>
>
>
>
>
>
>
> *Anthony Ciani*
>
> *Postdoctoral Fellow*
>
> [image: Sivananthan Lab_LOGO 08JAN2010 small]
>
> *Sivananthan Laboratories, Inc.*
>
> *590 Territorial Drive Ste H*
>
> *Bolingbrook, IL 60440*
>
> *630.226.0080 <630.226.0080>*
>
> *630.226.0081 <630.226.0081> Fax*
>
>
>
> The contents of this email and any attachments are the proprietary
> property of Sivananthan Laboratories(R). The information contained within is
> confidential and should not be shared, sold, or distributed without
> explicit permission of Sivananthan Laboratories(R).
>
>
>
>
> ------------------------------------------------------------------------------
> 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
<<inline: image001.jpg>>
------------------------------------------------------------------------------ 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

