@syncfusion/ej2-lists 21.2.6 → 21.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1930,7 +1930,7 @@ let ListView = class ListView extends Component {
1930
1930
  const focusedElement = this.curUL.querySelector('.' + classNames.focused);
1931
1931
  if (focusedElement) {
1932
1932
  focusedElement.classList.remove(classNames.focused);
1933
- if (!this.showCheckBox) {
1933
+ if (!this.showCheckBox && !isNullOrUndefined(this.selectedLI)) {
1934
1934
  this.selectedLI.classList.add(classNames.selected);
1935
1935
  }
1936
1936
  }
@@ -4554,7 +4554,8 @@ let Sortable = Sortable_1 = class Sortable extends Base {
4554
4554
  }
4555
4555
  const offset = target.getBoundingClientRect();
4556
4556
  const clientY = offset.bottom - ((offset.bottom - offset.top) / 2);
4557
- idx = e.clientY <= clientY ? idx : idx + 1;
4557
+ const cltY = e.changedTouches ? e.changedTouches[0].clientY : e.clientY;
4558
+ idx = cltY <= clientY ? idx : idx + 1;
4558
4559
  }
4559
4560
  return;
4560
4561
  }