Skip to content

Commit

Permalink
fix: open/close event not always being sent
Browse files Browse the repository at this point in the history
  • Loading branch information
farfromrefug committed Jan 5, 2024
1 parent 88f96f6 commit 6e24989
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ui-drawer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,9 @@ export class Drawer extends GridLayout {
if (this.mShowingSide && side !== this.mShowingSide) {
this.animateToPosition(this.mShowingSide, 0, duration);
}
const shouldSendEvent = side !== this.mShowingSide || (this.mShowingSide === side && position === 0);
// const shouldSendEvent = side !== this.mShowingSide || (this.mShowingSide === side && position === 0);
// TODO: why did we not send event every time?
const shouldSendEvent = true;
let trData;
if (side === 'left' || side === 'right') {
const width = this.mViewWidth[side];
Expand Down

0 comments on commit 6e24989

Please sign in to comment.