Then we are close. Not surprised there are a few nuances to fix. Here's
what I know:
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.
On Thu, Sep 19, 2013 at 5:58 PM, Otis Rothenberger <[email protected]>wrote:
> Bob,
>
> OK. This was all done by try to guess what was on Bob's mind with the bind
> changes. The only bind documentation that I'm aware of is
> http://chemapps.stolaf.edu/jmol/docs/?&fullmanual=1&ver=13.2.
>
> First, it looks like you created a DOUBLE-DRAG mouse action. When I bind
> this to scripts, it works exactly as you would expect. This is a really
> important one. It alleviates the problem no key modifiers in an iPad
> (hopefully other tablets) for drag events. I've tested this on my iPad and
> laptop with Safari, and it works like a charm with scripts involving _X _Y
> _DELTAX _DELTAY
>
> You created MOUSEDOWN. If you didn't, then I didn't know this was an
> option before. It looks like DOWN is a synonym for MOUSEDOWN. When bound,
> this tracks _X and _Y. This is super for iPad also. Binding actions could
> in theory be changed by taps in four corners of the JSmol window. I did not
> explore this yet, but I did successfully bind simple test scripts to
> MOUSEDOWN - laptop and iPad.
>
> You created MOUSEUP. It looks like UP is a synonym for MOUSEUP. When
> bound, this tracks _X and _Y. It also runs scripts. One caveat: This is
> fired by mouse over the window on a laptop - not just a mouse-up. On an
> iPad, it takes a quick tap to fire it - not just a down-up - a quick tap.
>
> You created a DRAG. This will run scripts with a drag, but normal drag is
> lost even if you don't unbind. I'm not sure if this was your intent.
>
> There is probably a lot more. Why don't you give me some hints? From what
> I've seen, this is all great stuff for touch screens.
>
> Otis
>
> --
> Otis Rothenberger
> [email protected]
> http://chemagic.com
>
>
>
>
> On Sep 19, 2013, at 7:09 AM, Otis Rothenberger wrote:
>
> Will do Bob.
>
> I lose Internet sometime this morning, but I have it downloaded, so I can
> work locally. I should be back up this afternoon.
>
> Otis
>
>
> --
> Otis Rothenberger
> [email protected]
> http://chemagic.com
>
> On Sep 19, 2013, at 12:40 AM, Robert Hanson wrote:
>
> Ah, ok. That's an operating system function -- no control over that.
>
> So, the line problem is fixed now -- please check
>
> http://chemapps.stolaf.edu/jmol/jsmol/jsmol.htm
>
> http://chemapps.stolaf.edu/jmol/zip/jmol-13.3.6_2013.09.18.zip
>
> I note that Firefox allows drag-drop straight onto the JSmol canvas from
> its download list. Very convenient!
> I was having trouble using the LOAD ? method with PNGJ files, but I think
> I figured out what the problem was. So do try some round-tripping:
>
> -- open a file either locally or remotely
> -- save it using "write FILE xxx.xxx"
> -- open a different model,then drag/drop back in the one you downloaded
> -- try LOAD ? to load it that way as well.
>
> If this all works, I'm done!
>
> Otis, do check out the new BIND options. Use
>
> show MOUSE
>
> to see what is already bound. Use some combination of
>
> LEFT RIGHT MIDDLE WHEEL
> CTRL ALT SHIFT
> SINGLE DOUBLE
> DOWN DRAG UP CLICK
>
> and see if you can get what you want that way. I did a lot of changes in
> that part of the code, so now it should be much more straightforward to fix
> if we need to do that. May be a few more tweaks before we are done.
>
> Bob
>
>
> Bob
>
>
>
> On Wed, Sep 18, 2013 at 8:09 PM, Bays Philip <[email protected]> wrote:
>
>> That seems to fix the "line" issue. You asked about the label that I
>> reported.
>>
>> When you select the "read" link you get the three buttons: "Choose File",
>> "Load", and "Cancel". When you select a file to load Safari and Firefox
>> behave differently. Safari shows an icon which if you mouse over it pops
>> up the file name; Firefox simply shows the file name, no icon. Now, I
>> don't know that it makes a difference, or what you intended. Just saying
>> that they behave differently.
>>
>> Phil
>>
>>
>> On Sep 18, 2013, at 7:29 PM, Robert Hanson <[email protected]> wrote:
>>
>> the problem was solved by merging the code. Jmol 13.2.6 == Jmol 13.3.6. I
>> try not to have to do that, but in this case it was necessary.
>>
>> --
>> 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
>>
>> ------------------------------------------------------------------------------
>> LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
>> 1,500+ hours of tutorials including VisualStudio 2012, Windows 8,
>> SharePoint
>> 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack
>> includes
>> Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13.
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk_______________________________________________
>> Jmol-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/jmol-users
>>
>>
>> J. Philip Bays
>> Emeritus Professor of Chemistry
>> Department of Chemistry and Physics
>> Saint Mary's College
>> Notre Dame, IN 46556
>> [email protected]
>>
>>
>>
>> ------------------------------------------------------------------------------
>> LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
>> 1,500+ hours of tutorials including VisualStudio 2012, Windows 8,
>> SharePoint
>> 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack
>> includes
>> Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13.
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
>> _______________________________________________
>> 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
>
> ------------------------------------------------------------------------------
> LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
> 1,500+ hours of tutorials including VisualStudio 2012, Windows 8,
> SharePoint
> 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack
> includes
> Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13.
>
> http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk_______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>
>
> ------------------------------------------------------------------------------
> LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
> 1,500+ hours of tutorials including VisualStudio 2012, Windows 8,
> SharePoint
> 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack
> includes
> Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13.
>
> http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk_______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>
>
>
> ------------------------------------------------------------------------------
> LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
> 1,500+ hours of tutorials including VisualStudio 2012, Windows 8,
> SharePoint
> 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack
> includes
> Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13.
> http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
> _______________________________________________
> 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
------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/22/13.
http://pubads.g.doubleclick.net/gampad/clk?id=64545871&iu=/4140/ostg.clktrk
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users