You might be right, but I think it's more subtle than that. From what I read, 
iPad Safari actually sends a hover event. You see it when you touch a link and 
hold for a second rather than click (a quick tap). The hold selects the link 
and brings up a hover box, albeit not the link title hover. I haven't tried it, 
but I bet a :hover style would override Safari's hover box to bring up your own 
hover hint. It's not just links. Hovering (touch hold) page html containers 
selects them and brings up a copy box.

So in the case of bond selection, I really think it's a touch followed by a 
tap. The bond hover circles do not display, so I make the model go translucent 
for a second to reinforce proper bond selection.

At first, I put this all in the fun challenge category, but I must admit that 
I'm pleasantly surprised to find how well JSmol behaves on Safari/iPad. 
IPad/Chrome on the other hand is useless.

iPad aside, I can't believe how easy it was to bring most of our virtual model 
kit functionality from Jmol applet to JSmol.

Otis


--
Otis Rothenberger
o...@chemagic.com
http://chemagic.com




On Jan 24, 2013, at 12:50 AM, Robert Hanson wrote:

> isn't that called a "double-click"? :)
> 
> 
> On Wed, Jan 23, 2013 at 9:56 PM, Otis Rothenberger <osrot...@chemagic.com> 
> wrote:
> Bob,
> 
> OK, finally. I was screwing up with missing quotes on the bind. I had them in 
> what I pasted below, but they were missing in my code.
> 
> You can conformation rotate about a bond on an iPad. The hover on the bond is 
> a bit tricky, but there's a learnable rhythm involved - touch/up/touch/up. It 
> works pretty well with a stylus. What fun.
> 
> Otis
> 
> --
> Otis Rothenberger
> o...@chemagic.com
> http://chemagic.com
> 
> 
> 
> 
> On Jan 23, 2013, at 4:15 PM, Robert Hanson wrote:
> 
>> you can certainly use
>> 
>> UNBIND LEFT
>> 
>> to unbind LEFT-CLICK. 
>> 
>> 
>> 
>> 
>> On Wed, Jan 23, 2013 at 7:34 AM, Otis Rothenberger <osrot...@chemagic.com> 
>> wrote:
>> Bob,
>> 
>> I've discovered that iPad actually has a hover that allows me to select a 
>> bond in JSmol prior to a conformation rotation. So this hover/click movement 
>> sets me up for conformation. I'm currently using the following binding for 
>> this:
>> 
>> bind "CTRL-LEFT" "select WITHIN(BRANCH,{atomno=rot1}, {atomno=rot2}); if (_X 
>> < 250){select WITHIN(BRANCH,{atomno=rot2}, {atomno=rot1});} rotateSelected 
>> {atomno=rot1} {atomno=rot2} @{_DELTAY*.5}
>> 
>> The rot1 and rot2 are set up by the bond selection. The 250 is my half my 
>> JSmol window width.
>> 
>> The above binding (CTRL-LEFT) is useless on an iPad. Is there any way to 
>> temporarily unbind "LEFT" alone so that it can be bound to the above script? 
>> If not, do any other touch executions of the above come to mind?
>> 
>> I'm assuming above that "LEFT" alone would equate to touch-drag on the iPad.
>> 
>> Otis
>> 
>> --
>> Otis Rothenberger
>> o...@chemagic.com
>> http://chemagic.com
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> ------------------------------------------------------------------------------
>> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
>> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
>> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
>> MVPs and experts. ON SALE this month only -- learn more at:
>> http://p.sf.net/sfu/learnnow-d2d
>> _______________________________________________
>> Jmol-users mailing list
>> Jmol-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/jmol-users
>> 
>> 
>> 
>> -- 
>> Robert M. Hanson
>> Larson-Anderson Professor of Chemistry
>> Chair, Chemistry Department
>> 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
>> 
>> ------------------------------------------------------------------------------
>> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
>> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
>> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
>> MVPs and experts. ON SALE this month only -- learn more at:
>> http://p.sf.net/sfu/learnnow-d2d_______________________________________________
>> Jmol-users mailing list
>> Jmol-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/jmol-users
> 
> 
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. ON SALE this month only -- learn more at:
> http://p.sf.net/sfu/learnnow-d2d
> _______________________________________________
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users
> 
> 
> 
> 
> -- 
> Robert M. Hanson
> Larson-Anderson Professor of Chemistry
> Chair, Chemistry Department
> 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
> 
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. ON SALE this month only -- learn more at:
> http://p.sf.net/sfu/learnnow-d2d_______________________________________________
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to