We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28a1389 commit 8a8315aCopy full SHA for 8a8315a
src/store/ChartAdapterStore.ts
@@ -252,13 +252,10 @@ export default class ChartAdapterStore {
252
if (chartNode && this.scrollableChartParent && !this.mainStore.state.isVerticalScrollEnabled) {
253
if (this.touchValues.multiTouch) {
254
if (e.type === 'touchend') {
255
- if (!this.touchValues.touchIds?.length) {
256
- this.touchValues = { multiTouch: false };
257
- } else {
258
- this.touchValues.touchIds = this.touchValues.touchIds?.filter(
259
- id => id === e.changedTouches[0].identifier
260
- );
261
- }
+ this.touchValues.touchIds = this.touchValues.touchIds?.filter(
+ id => id === e.changedTouches[0].identifier
+ );
+ this.touchValues = { multiTouch: !!this.touchValues.touchIds?.length };
262
}
263
return;
264
0 commit comments