RESOLVED WONTFIX 27043
Mouse-dragged events are not generated for right & middle buttons for NPAPI plugins
https://bugs.webkit.org/show_bug.cgi?id=27043
Summary Mouse-dragged events are not generated for right & middle buttons for NPAPI p...
Dan Webb
Reported 2009-07-07 14:27:15 PDT
When in Cocoa events mode, NPAPI does not generate mouse-dragged events for the right & middle mouse buttons. Left button mouse-dragged events are working fine. The Google Earth plugin UI depends heavily on all three mouse buttons, so this is a big deal for us. Right-button-drag is used for zooming in/out, and middle-button-drag is for tilting & rotating. Could it be that the rightMouseDragged method is not implemented? See <http://trac.webkit.org/browser/trunk/WebKit/mac/Plugins/WebNetscapePluginView.mm>.
Attachments
Fixes middlemouse and rightmouse drag events. (2.58 KB, patch)
2009-07-08 18:56 PDT, John Newlin
oliver: review-
John Newlin
Comment 1 2009-07-08 18:56:06 PDT
Created attachment 32497 [details] Fixes middlemouse and rightmouse drag events. I have thoroughly enjoyed fixing this bug.
Oliver Hunt
Comment 2 2009-07-09 20:39:40 PDT
Comment on attachment 32497 [details] Fixes middlemouse and rightmouse drag events. Basically looks good, but you probably also want to add -[WebBaseNetscapePluginView otherMouseDragged:NSEvent*] and you also need to add tests cases for it
John Newlin
Comment 3 2009-07-09 21:05:19 PDT
Hi Oliver, I was looking at adding a test but the eventSender only MouseDown/MouseUp and dragMode. There doesn't seem to be a way to simulate middle/right mouse clicks in the current framework. Let me look at the otherMouseDragged, I made a change somewhere else (was it dragMouse?) that fixed this, because the event is handled by a view higher up the chain. But only leftMouse drags were being passed down to the lower levels.
Deirdre Saoirse Moen
Comment 4 2009-08-21 17:11:59 PDT
Also filed by originator as rdar://problem/7160923.
Ahmad Saleem
Comment 6 2022-06-21 03:42:48 PDT
NPAPI support has been removed from Safari 14 onward and also not supported in WebkitGTK builds. Can we close this as "RESOLVED WONTFIX"? Thanks!
Note You need to log in before you can comment on or make changes to this bug.