Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Sources/iOS/FABMenu/FABMenu.swift
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,10 @@ extension FABMenu {
- Returns: An optional UIView.
*/
open override func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? {
guard isOpened, isEnabled else {

//under Catalyst, the FabMenu is hit with UIHover events.
//If we don't check that the event is a touch, the menu is prematurely closed
guard isOpened, isEnabled, event?.type == .touches else {
return super.hitTest(point, with: event)
}

Expand Down