Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#4863 closed defect (fixed)

menu options are responding to mouse button down events with button up events outside menu

Reported by: quozl Owned by:
Priority: Normal Milestone: Unspecified
Component: Sugar Version: Git as of bugdate
Severity: Unspecified Keywords: patch
Cc: Distribution/OS: Unspecified
Bug Status: New

Description

The industry convention for mouse driven menu options is for them to be activated when two conditions are met:

  • a button down event occurs with the pointer inside the option, and;
  • a button up event occurs with the pointer inside the option.

The latter condition is not being checked in the Sugar menus.

Reproducer: right-click on the buddy menu, put the pointer over the My Settings option, press down on the button, move the pointer out of the menu, release the button.

Expected result: menu is dismissed.

Observed result: menu is dismissed, and the My Settings option is activated.

Change History (3)

comment:2 Changed 9 years ago by Sam Parkinson

  • Resolution set to fixed
  • Status changed from new to closed

Only activate menu items if the mouse releases in them - fixes #4863

Ticket URL <http://bugs.sugarlabs.org/ticket/4863>

Changeset: 9fc5b493293ea3d715193c61daa99251ac115f3e

comment:3 Changed 8 years ago by quozl

Tested in 0.107.0, works fine.

Note: See TracTickets for help on using tickets.