Skip to content

Commit

Permalink
fix #958
Browse files Browse the repository at this point in the history
  • Loading branch information
PapyElGringo committed May 18, 2023
1 parent db20eb5 commit 89f460b
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions src/widget/material/button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,19 +174,8 @@ const PropagateClickAction = (() => {
static metaInfo: GObject.MetaInfo = {
GTypeName: 'PropagateClickAction',
};
event: Clutter.Event | undefined;

vfunc_clicked(actor: Clutter.Actor) {
this.event = Clutter.get_current_event();
return super.vfunc_clicked(actor);
}

vfunc_long_press(
actor: Clutter.Actor,
state: Clutter.LongPressState
) {
this.event = Clutter.get_current_event();
return super.vfunc_long_press(actor, state);
get event(): Clutter.Event | undefined {
return Clutter.get_current_event();
}
}
return PropagateClickActionBefore42;
Expand Down

0 comments on commit 89f460b

Please sign in to comment.