Alexander,
The mouse bindings are now somewhat more specific.
FEATURE CHANGE: added bindings: "drag" and "up" -- may affect power users
who use BIND command
mouse actions include one (each) of:
SINGLE DOUBLE
LEFT MIDDLE RIGHT WHEEL
DOWN DRAG UP CLICK
for example:
SINGLE-RIGHT-CLICK
DOUBLE-LEFT-DRAG
defaults are SINGLE, LEFT, and CLICK
sequence is always:
down
(drag,drag,drag...)
up
(click) (only if no drag)
Any of these actions may be tapped using
bind "<some mouse action>" "<jmol action or script>"
Note that adding "+:" to an action
bind "<some mouse action" "+:<script...>"
does not replace the Jmol action, just supplements it.
So, Alexander, in the case of _translate, which necessarily requires
dragging, the binding would be
set "MIDDLE-DRAG" _translate
without the "DRAG" this defaults to "SINGLE-MIDDLE-CLICK", which is only
activated by releasing the mouse, so no translation is possible.
I don't have a middle-mouse button, but I tried this with:
unbind "RIGHT-DOWN" // disables pop-up menu
bind "RIGHT_DRAG" "_translate"
and it worked fine.
Bob
On Mon, Nov 25, 2013 at 8:46 AM, Alexander Rose <alexander.r...@weirdbyte.de
> wrote:
> Hi,
>
> I have problems with the "bind" command, e.g. on
> http://chemapps.stolaf.edu/jmol/jsmol/test2.htm?USE=JAVA&SIGNED
>
>
> For example
>
> bind "MIDDLE" "_translate";
> or
> unbind "MIDDLE";
>
> seems to do nothing
>
> unbind "rotateZorZoom";
>
> on the other hand works
>
>
> can anyone confirm this?
>
>
>
> Best
> Alexander
>
>
> ------------------------------------------------------------------------------
> Shape the Mobile Experience: Free Subscription
> Software experts and developers: Be at the forefront of tech innovation.
> Intel(R) Software Adrenaline delivers strategic insight and game-changing
> conversations that shape the rapidly evolving mobile landscape. Sign up
> now.
> http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
> _______________________________________________
> Jmol-developers mailing list
> Jmol-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-developers
>
--
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
------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing
conversations that shape the rapidly evolving mobile landscape. Sign up now.
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Jmol-developers mailing list
Jmol-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-developers