svelte-material-ui icon indicating copy to clipboard operation
svelte-material-ui copied to clipboard

Tooltips show up with quick taps with touch input, should require holding.

Open ric2b opened this issue 3 years ago • 1 comments

Describe the bug

Tooltips always show up when using touch input, regardless of how fast the user taps the button/wrapper element.

They also stay visible until a user taps outside the wrapper element.

To Reproduce Steps to reproduce the behavior:

  1. Go to https://svelte.dev/repl/a702519cbe22461db21462d937dcd54d?version=3.38.2
  2. On a mobile device, or using your browser's dev tools to enable touch input, tap the button without holding
  3. The tooltip will appear regardless of how quickly you tap.
  4. The tooltip will also stay visible until you tap somewhere else in the page, instead of fading out once you stop holding.

Expected behavior

The usual convention for touch input is that tooltips only appear after tap and hold. They should then disappear once the user stops holding.

Desktop (please complete the following information):

  • OS: Ubuntu 21.04
  • Browser Firefox 88.0.1

Smartphone (please complete the following information):

  • Device: Samsung Galaxy S10e
  • OS: Android 11
  • Browser: Firefox Focus 8.15.3 / Firefox 88.1.4 / Chrome 99.0.4430.210

ric2b avatar May 26 '21 21:05 ric2b

this also happens with normal input, when you just click a button with a tooltip, it tooltip shows, even though it shouldn't

KraXen72 avatar Nov 23 '21 19:11 KraXen72