The mouse wheel action should be using _DELTAY. The zoom function is:
Math.pow(mouseWheelFactor, _DELTAY)
That is, mouseWheelFactor taken to the power of _DELTAY.
The default mouseWheelFactor is 1.02.
The equivalent script would be
zoom * @{mouseWheelFactor**_DELTAY)}
...ah, that would be true IF we had exponentiation...(ten minutes later)...
OK we have that now in Jmol 11.9.33.
print 2**3
8
print 2**0.5
1.4142135
print 2**-1
0
[because these are integers]
print 2**-1.0
0.5
[because one of them is not an integer]
I'll that that out so you can try it.
Question: Is there some reason we would see ** somewhere in select phrases
rather than *? I'm pretty sure not.
Bob
On Thu, Mar 11, 2010 at 3:20 PM, Otis Rothenberger <[email protected]>wrote:
> I am using bind/unbind to move selected molecular fragments on the XY
> plane. This all works. I want to allow the user to move the fragments along
> the Z axes using the same script approach. The smoothest way to do this for
> the user is to bind the wheel to the Z translation, but I do not have a +/-
> wheel feedback handle like _DELTAX and _DELTAY for mouse feedback. I can
> bind the wheel, but movement along the Z axis is only +. Is there any
> wheeled forward/backward feedback information associated with BIND?
>
> Otis
>
> --
> Otis Rothenberger
> http://chemagic.org
>
>
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>
--
Robert M. Hanson
Professor of Chemistry
St. Olaf College
1520 St. Olaf Ave.
Northfield, MN 55057
http://www.stolaf.edu/people/hansonr
phone: 507-786-3107
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
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users