Skip to content

Double-click required to open RecordTable cell on iOS #178

Closed as not planned
@Devessier

Description

@Devessier

Clicking twice on RecordTable cells is required to open them on iOS.

According to my research, there are a few things that can make it necessary to click twice on an element to open it on iOS:

  • The element might have a :hover pseudo-selector; iOS chooses to display the hover state on the first click, then trigger the actual onClick listener on the second click
  • The element might have mouse event listeners, like onMouseStart; in that case, the onClick listener will be called on the second click

Some references:

We must examine every use case and ensure that Twenty's website is usable on mobile devices.

I think the bug for RecordTable cells is not caused by a hover state but by the mouse event listeners. I couldn't find any hover state, and things worked when I removed the listeners, as shown below:

ScreenFlow.mp4

That said, I don't know what the best fix would be. I may have missed another reason during my research.

We could disable mouse listeners where appropriate when the user's device doesn't support hovering. This article explains the media queries we could use: https://www.smashingmagazine.com/2022/03/guide-hover-pointer-media-queries/.

Metadata

Metadata

Assignees

Labels

prio: lowscope: frontIssues that are affecting the frontend side only

Type

No type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions