Skip to content

Commit

Permalink
fix(core): fix open DropdownContext after single touch on iOS (#9287)
Browse files Browse the repository at this point in the history
  • Loading branch information
MillerSvt authored Oct 1, 2024
1 parent e27cf34 commit 8a5ff74
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,10 @@ export class TuiDropdownContext extends TuiRectAccessor {
return;
}

this.currentRect = tuiPointToClientRect(x, y);
this.longTapTimeout = setTimeout(() => this.driver.next(true), TAP_DELAY);
this.longTapTimeout = setTimeout(() => {
this.currentRect = tuiPointToClientRect(x, y);
this.driver.next(true);
}, TAP_DELAY);
}

protected onTouchMove(x: number, y: number): void {
Expand Down

0 comments on commit 8a5ff74

Please sign in to comment.