Closed Bug 162367 Opened 23 years ago Closed 23 years ago

After clicking a folder on the bookmarks toolbar, double-clicking anywhere recalls the pop-up menu

Categories

(Camino Graveyard :: Toolbars & Menus, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
Camino0.9

People

(Reporter: dereks, Assigned: mikepinkerton)

Details

Attachments

(1 file)

After you click on a folder that's in your bookmarks toolbar a double click anywhere else on the browser window will reproduce the floating menu. Steps: 1) Click on a folder in your bookmarks toolbar 2) double click anywhere on the browser window
Confirmed using Chimera/2002081105. Reassigning to Toolbars & Menus.
Status: UNCONFIRMED → NEW
Component: General → Toolbars & Menus
Ever confirmed: true
Summary: After clicking a folder that's in your bookmarks toolbar a double click reproduces the floating menu → After clicking a folder on the bookmarks toolbar, double-clicking anywhere recalls the pop-up menu
->pinkerton
Assignee: saari → pinkerton
Blocks: 147975
neat. max, any ideas?
Status: NEW → ASSIGNED
Target Milestone: --- → Chimera0.9
I don't quite understand what is meant heree - what does "reproduce the floating menu" mean? In my own build, nothing unusual seems to happen, but then I have applied various patches, most importantly the patch attached to bug #149836 which might affect this.
Gah! Being able to read helps a lot, this was talking about the * bookmarks toolbar*, please ignore me :-) Yes I see the problem, and I will look into it.
Attached patch FixSplinter Review
Fix for the issue. Explanation: We overwrite mouseDown to display a custom popup menu for folders in the bookmark toolbar (note that mouseUp for NSButtons is never called, because the default mouseDown method of NSControl does not return before the mouseUp, normally). Now, this menu is displayed using [NSMenu popUpContextMenu]. When you click outside the menu, the menu will close (the first click of our double click). It takes it a little moment to fade out. When you quickly click again in this period, the second mouseDown event is routed to the NSButton, even though the mouse is not over it, and thus it reopens the menu. A proper fix might be to check again if the click was inside the button in mouseDown, but this hack just ensures that the menu is only triggered by single clicks, which gives exactly the same resuls in this case.
thx max. landed.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Verified in the 2002-08-21-05 NB.
Status: RESOLVED → VERIFIED
No longer blocks: 147975
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: