From: Jonathan G. <gu...@uw...> - 2007-09-29 13:39:39
|
I have verified Dean's observations on MacOS JavaVM 1.5.0, Jmol 11.2.13. Dean, did you put in some System.err.println commands to see where we are getting to? On Sep 28, 2007, at 11:11 PM, Dean Johnston wrote: > I stand corrected - the Jmol application seems to work correctly on > the Mac > after all. I'm not sure why it didn't seem to work before. So I > guess the > problem is only with Safari on OS X. > > I tried compiling the latest Jmol version in Eclipse. Regardless > of whether > I commented out the "if (!viewer.getAwtComponent().hasFocus())" > lines, I saw > the same results: > Jmol application: just fine > Jmol applet (launched within Eclipse): just fine > Jmol applet (Firefox): just fine > Jmol applet (Safari): nothing - MouseManager.mouseWheel doesn't > appear to be > called at all... Is there anywhere that a mousewheel event goes to the applet? If not, I agree we are probably out of luck. Safari may not be passing the events on. Jonathan > > Out of luck? > > Dean > > > > On 9/28/07 5:53 PM, "Jonathan Gutow" <gu...@uw...> wrote: > >> I just checked my Mac System (recently updated OS 10.4.10 --probably >> updated in the last two weeks) it has JavaVM 1.5.0. Using Jmol >> version 11.3.26 the scroll button zooms as long as the viewer has the >> focus. So, at least for the application, things work correctly with >> the latest JavaVM. >> >> I haven't had time to play with the applet yet. >> >> Jonathan >> On Sep 28, 2007, at 3:42 PM, Bob Hanson wrote: >> >>> So there are two issues: >>> >>> 1) What exactly starts the scrollwheel events working on a PC? -- >>> probably an issue of focus, is my guess. >>> >>> 2) on a Mac, even with JRE 1.4 or later, why aren't the wheel events >>> registered? >>> >>> If you can compile Jmol, try commenting out: >>> >>> if (!viewer.getAwtComponent().hasFocus()) >>> return; >>> >>> >>> in MouseManager. mouseWheel(long time, int rotation, int modifiers) >>> >>> and any System.out.println() you want to put in that method could be >>> informative. >>> >>> I'm pretty sure if nothing is coming through there, then we're out >>> of luck. >>> >>> Bob > > > > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Jmol-developers mailing list > Jmo...@li... > https://lists.sourceforge.net/lists/listinfo/jmol-developers Dr. Jonathan H. Gutow Chemistry Department gu...@uw... UW-Oshkosh Office:920-424-1326 800 Algoma Boulevard FAX:920-424-2042 Oshkosh, WI 54901 http://www.uwosh.edu/faculty_staff/gutow/ |