Closed
Bug 518542
Opened 15 years ago
Closed 15 years ago
Two-finger scrolling does not work on Snow Leopard
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: joelr, Assigned: jaas)
References
Details
Attachments
(1 file, 1 obsolete file)
4.11 KB,
patch
|
mstange
:
review+
|
Details | Diff | Splinter Review |
Works fine in the 32-bit build.
Comment 1•15 years ago
|
||
That's because Josh has just ifdef'd out all the scrolling code.
Blocks: 513777
Reporter | ||
Comment 2•15 years ago
|
||
Josh, what's the problem with scrolling?
I forgot to file this bug when I landed the patch. See our implementation of: -(void)scrollWheel:(NSEvent*)theEvent forAxis:(enum nsMouseScrollEvent::nsMouseScrollFlags)inAxis which right now is at: http://mxr.mozilla.org/mozilla-central/source/widget/src/cocoa/nsChildView.mm#3546 It uses APIs that are not available to 64-bit applications.
Comment 4•15 years ago
|
||
Which APIs are that? Anything other than the Carbon plugin events?
I don't remember, whoever ends up working on this will have to look at the code.
Reporter | ||
Updated•15 years ago
|
Assignee: nobody → joelr
Reporter | ||
Comment 6•15 years ago
|
||
Is inheriting from NSScrollView an option here: http://mxr.mozilla.org/mozilla-central/source/widget/src/cocoa/nsChildView.h#118 We could then piggyback on the standard Cocoa scrolling APIs: http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/NSScrollViewGuide/Articles/Scrolling.html#//apple_ref/doc/uid/TP40003463-SW3 It may be possible to do this without NSScrollView but I need to run some tests.
Comment 7•15 years ago
|
||
No, that's not an option. One reason is that not all Gecko scrollboxes have their own NSView; another reason is that we need to send mouse wheel events so that websites can process them and do other things than scrolling (e.g. zooming on Google Maps).
Reporter | ||
Comment 8•15 years ago
|
||
It seems that the only option is to piggyback on mouse dragging: http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/EventOverview/HandlingMouseEvents/HandlingMouseEvents.html If not all scrollboxes have their their own NSView then either we'll need to work with the parent NSView or we are screwed.
Comment 9•15 years ago
|
||
What do you mean with mouse dragging? Two finger scrolling works via the NSResponder method -(void)scrollWheel:(NSEvent*)theEvent that josh pointed to. We don't need an NSScrollView to receive those events.
Reporter | ||
Comment 10•15 years ago
|
||
Attachment #402716 -
Flags: review?(mstange)
Updated•15 years ago
|
Attachment #402716 -
Flags: review?(mstange) → review?(joshmoz)
Assignee | ||
Comment 11•15 years ago
|
||
There were some other things bothering me here. I fixed them in this patch and I filed bug 519100 about providing scroll wheel events to Cocoa NPAPI plugins.
Assignee: joelr → joshmoz
Attachment #402716 -
Attachment is obsolete: true
Attachment #403097 -
Flags: review?
Attachment #402716 -
Flags: review?(joshmoz)
Attachment #403097 -
Flags: review? → review?(joelr)
Updated•15 years ago
|
Attachment #403097 -
Flags: review?(joelr) → review+
Assignee | ||
Comment 12•15 years ago
|
||
pushed to mozilla-central http://hg.mozilla.org/mozilla-central/rev/48ed3509beaf
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•