You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't pinpoint the exact scenario, but this.steps can be an empty array. Most places in events.ts have null checking with typescript's ? optional chaining operator except this one:
We've seen a few Cannot read properties of undefined (reading 'posY') errors come through our logging framework. In reading through the code, it seems that the line above can be the only culprit. It would be good add optional chaining here, too.
The text was updated successfully, but these errors were encountered:
@rgoldiez Thank you for report.
Always using an optional chaining is a compromise. And here is a good litmus paper to know the exact reason of issue and fix it in correct way. So, decided to fix rather than use additional compromise with chaining.
Bug is easy to reproduce: just hold touchmove action on pane initialization and touchstart will be skipped.
I can't pinpoint the exact scenario, but
this.steps
can be an empty array. Most places inevents.ts
have null checking with typescript's?
optional chaining operator except this one:https://github.com/roman-rr/cupertino-pane/blob/5b49dc37dbc33a67093d473053872975dc816ba6/src/events.ts#L252
We've seen a few
Cannot read properties of undefined (reading 'posY')
errors come through our logging framework. In reading through the code, it seems that the line above can be the only culprit. It would be good add optional chaining here, too.The text was updated successfully, but these errors were encountered: