MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / isPointerOrTouchSelection

Function isPointerOrTouchSelection

src/cm/lsp/tooltipExtensions.ts:332–343  ·  view source on GitHub ↗
(update: ViewUpdate)

Source from the content-addressed store, hash-verified

330}
331
332function 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
345function closeHoverIfNeeded(view: EditorView): void {
346 if (hasHoverTooltips(view.state)) {

Callers 1

updateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected