Hacker News new | ask | show | jobs
by BobaFloutist 332 days ago
Double tap on text highlights it for me. Is that an Iphone/android thing or what?
2 comments

As I said, it's a two finger double-tap.

But also, under further investigation — and unlike with pinch-to-zoom — desktop support for the two-finger double-tap gesture seems to be specific to macOS. (Which is weird, because Chrome has support for arbitrary multitouch gesture processing to enable the JS multitouch API. So you'd think Chrome's support for "the multitouch gestures the OS expects" would be built on top of that generic multitouch recognizer [and therefore working everywhere that recognizer works], instead of expecting the OS to pre-recognize specific gestures and translate them to specific OS input events.)

I was trying on my phone, but my laptop seems to interpret it as a right click. Which, frankly, makes sense.
On my iPad in Safari and Pixel Android phone in Firefox, one-finger double tap on text does the fit to viewport.

On my Ubuntu laptop in Chrome, I couldn’t find a way to make it work - even tapping the touchscreen didn’t work. But I’m not using the stock Ubuntu GUI, so it could be that (LXqt+XMonad).

>Pixel Android phone in Firefox, one-finger double tap on text does the fit to viewport.

I'm very confused, can you clarify what makes this different from the gesture that highlights text?

Edit: it appears that "request desktop site" makes it fit the viewport, whereas using the mobile view it's I guess already fitting the viewport so it highlights the text. The strange thing is in the desktop view, if I pinch zoom after fitting the viewport and do it again, it zooms out, whereas the mobile view still highlights the text. Which kinda makes sense, since mobile view it's fairly likely that you zoomed in to highlight the text more accurately, though it's weird that it's so inconsistent.

On both my iPad and Android, to highlight text I press and hold. I can't find a way to make double-tap do that.
Are you using Chrome or Firefox, on Android?