message: refactor(selecion): check selection range count
diff: @@ -77,9 +77,7 @@ function withTouchMode(config: AppConfig) {
  map(([, isWithMouse]) => [window.getSelection(), isWithMouse] as const),
  filter(
  (args): args is [Selection, boolean] =>
  - !!args[0] &&
  - args[0].rangeCount > 0 &&
  - !isInSaladictExternal(args[0].anchorNode)
  + !!args[0] && !isInSaladictExternal(args[0].anchorNode)
  ),
  withLatestFrom(mouseup$, mousedown$, clickPeriodCount$),
  map(([[selection, isWithMouse], mouseup, mousedown, clickPeriodCount]) => {
  @@ -115,6 +113,10 @@ function withTouchMode(config: AppConfig) {
  }
  }
  + if (selection.rangeCount <= 0) {
  + return { self }
  + }
  +
  const rect = selection.getRangeAt(0).getBoundingClientRect()
  if (
  