frykauf / o3d

Automatically exported from code.google.com/p/o3d
0 stars 0 forks source link

scrollwheel does not work on OSX #66

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. load samples/render-mode.html
2. Drag 2 fingers on the touchpad to simulate a scrollwheel

What is the expected output? 

The teapot should zoom in and out.

What do you see instead?

The teapot does not zoom in and out.

Original issue reported on code.google.com by g...@google.com on 29 Jun 2009 at 7:03

GoogleCodeExporter commented 9 years ago

Original comment by g...@google.com on 29 Jun 2009 at 7:03

GoogleCodeExporter commented 9 years ago

Original comment by k...@google.com on 7 Jul 2009 at 12:02

GoogleCodeExporter commented 9 years ago
The fix for this is non-trivial. From looking through the Mac developer 
documentation
it is simply not possible to receive scroll wheel events via the ancient 
EventRecord
mechanism, which predates even Carbon, which is now obsolete. We are currently 
using
the Carbon event model because Safari 4 doesn't provide an NSView or NSWindow 
into
which to create an on-screen OpenGL context when using the Cocoa event model; 
you are
basically expected to use the Core Animation drawing model in conjunction with 
the
Cocoa event model. We need to add support for the Core Animation drawing model, 
at
which point we can run using the Cocoa event model inside of Safari 4 and 
support
scroll wheel events.

Original comment by k...@google.com on 8 Jul 2009 at 2:39