layerchart icon indicating copy to clipboard operation
layerchart copied to clipboard

[Tooltip] Increase default x/y offset on mobile / touch

Open techniq opened this issue 8 months ago • 0 comments

Currently we default xOffset / yOffset to 10 pixels when using pointer mode, but this can easily obscure tooltips under your bring.

We should instead increase the offset when touch is detected using maybe new MediaQuery('(pointer: course)') (svelte, mdn) or navigator.maxTouchPoints (mdn) as a tell.

techniq avatar May 05 '25 14:05 techniq