(update: ViewUpdate)
| 330 | } |
| 331 | |
| 332 | function isPointerOrTouchSelection(update: ViewUpdate): boolean { |
| 333 | return ( |
| 334 | update.selectionSet && |
| 335 | update.transactions.some( |
| 336 | (tr) => |
| 337 | tr.isUserEvent("pointer") || |
| 338 | tr.isUserEvent("select.pointer") || |
| 339 | tr.isUserEvent("touch") || |
| 340 | tr.isUserEvent("select.touch"), |
| 341 | ) |
| 342 | ); |
| 343 | } |
| 344 | |
| 345 | function closeHoverIfNeeded(view: EditorView): void { |
| 346 | if (hasHoverTooltips(view.state)) { |