On 11/14/2012 04:56 PM, Robert Hanson wrote: > right now there is no minimization because I haven't settled on the > equivalent of a "thread" in JavaScript, and actually, I specifically have > not included the minimization code in the JavaScript version. So it might > be a little premature for this, but give it a try. > > I need to do more testing with determination of the size and position of > the canvas. Resizing also probably doesn't work. > > If you figure out what I'm doing wrong, please let me know. > Bob, I don't know how you determine the relative mouse position within the canvas but I found a little tutorial that might help: http://www.html5canvastutorials.com/advanced/html5-canvas-mouse-coordinates/
The example there at least displays the correct mouse positions in my browser (Firefox 16.0.2, OpenSUSE 11.4). Regards, Rolf -- Rolf Huehne Postdoc Leibniz Institute for Age Research - Fritz Lipmann Institute (FLI) Beutenbergstrasse 11 07745 Jena, Germany Phone: +49 3641 65 6205 Fax: +49 3641 65 6210 E-Mail: [email protected] Website: http://www.fli-leibniz.de Scientific Director: Prof. Dr. K. Lenhard Rudolph Head of Administration: Dr. Daniele Barthel Chairman of Board of Trustees: Dennys Klein VAT No: DE 153 925 464 Register of Associations: No. 296, Amtsgericht Jena Tax Number: 162/141/08228 ------------------------------------------------------------------------------ Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov _______________________________________________ Jmol-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jmol-users

