Skip to content

Commit

Permalink
Improving usability of command popup menus
Browse files Browse the repository at this point in the history
For a command button in a menu, its secondary (cascading) popup should be shown on mouse rollover and not on press, For such a cascading popup menu, the relevant parts of the cascade should be hidden when the user moves the mouse anywhere outside the cascade path bounds

Increase initial delay to show rich tooltip to 750ms

For #65
  • Loading branch information
kirill-grouchnikov committed Jan 29, 2023
1 parent d45d040 commit 309731b
Show file tree
Hide file tree
Showing 3 changed files with 305 additions and 40 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,16 @@ object AuroraPopupManager {
pointInOriginator: Offset
): Boolean {
val match = shownPath.reversed().find {
(it.popup == originator) &&
(it.originatorPopup == originator) &&
(it.popupTriggerAreaInOriginatorWindow.contains(pointInOriginator))
}
return match != null
}

fun dump() {
println("Popups")
for (link in shownPath) {
println("\tOriginator ${link.originatorPopup.javaClass.simpleName}@${link.originatorPopup.hashCode()}")
}
}
}
Loading

0 comments on commit 309731b

Please sign in to comment.