You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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.
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:
:hover
pseudo-selector; iOS chooses to display the hover state on the first click, then trigger the actualonClick
listener on the second clickonMouseStart
; in that case, theonClick
listener will be called on the second clickSome 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/.
The text was updated successfully, but these errors were encountered: