Skip to content

Commit

Permalink
FIx context menu location
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani committed Feb 19, 2024
1 parent a1826d6 commit 8e2dc29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pill.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ pub fn pill(props: &PillProps) -> Html {
event.prevent_default();
event.set_cancel_bubble(true);
context_menu.dispatch(ContextMenuAction::Show(
event.client_x(),
event.client_y(),
event.page_x(),
event.page_y(),
items.clone(),
))
}
Expand Down

0 comments on commit 8e2dc29

Please sign in to comment.