RE: Disable drag and drop in the main content window.
Evan Brewer <[email protected]>
| Newsgroups | gmane.comp.web.galeon.devel |
|---|---|
| Message-ID | <21F455F95EFDD411A3E200508BB22B802C167E@sharechive01.sharechive.com> |
In doing more research on the subject, I got ahold of Mike Pinkerton who is one of the developers of the drag and drop functionality of Mozilla. He pointed out that the embedders, (Galeon etc) could make use of the following: http://lxr.mozilla.org/seamonkey/source/widget/public/nsIClipboardDragDropHo oks.idl (For enabling / disabling) of drag and drop. This is probably what most of the kiosk mode supporters are looking for. As for setting the threshold, it would appear that a value of 5 pixels is statically set in Mozilla. In the 1.3 code, under content/events/src/nsEventStateManager.cpp Line 1375 reveals the following: const long pixelDeltaToStartDrag = 5; It would appear that in order for Galeon to control the drag threshold, it is up to the Mozilla camp to make this long available for userland setting instead of being a fixed value. However, this is only part of the puzzle. Dealing with the pointer, the button click, and drag off of the link pixelDeltaToStartDrag distance, won't result in a proper drag. Food for thought for the developers. - Evan -----Original Message----- From: Evan Brewer Sent: Thursday, July 10, 2003 10:11 AM To: '[email protected]' Subject: Disable drag and drop in the main content window. I apologize if this question has been already answered on this list, but sourceforge's archives for this list returned "Forum not found." I am working with a tablet PC, and nine times out of ten, clicking links ends up in a drag. Ultimately I would like to see Galeon use the gconf setting /desktop/gnome/peripherals/mouse/drag_threshold to adjust this, but for now I would like to just disable dragging of links (in the main window) altogether. I have looked through Galeon 1.2.11 source and is my assumption that this handling is done in the Mozilla libraries. After a little help and research I was directed to this bug: http://bugzilla.mozilla.org/show_bug.cgi?id=152080 Indicating that people are indeed aware of the necessity. Has anyone come up with a hack, or a workaround for this bug? Any help would be appreciated. - Evan ------------------------------------------------------- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing & more. Download & eval WebKing and get a free book. www.parasoft.com/bulletproofapps1