Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Request for new functionality
View staffing
Description
We have a that takes a lambda as
Surface
onClick
parameter. The component works well on TV, however it does not work on other form factors, such as mobile. This is because theonClick
lambda is not invoked when we touch theSurface
.We can use the components in the
tv-material
package on other form factors, if the clickableSurface
supports touch input.I believe we could make the component support touches by switching the modifier with the modifier. The d-pad's center button .
tvClickable
clickable
clickable
modifier monitors the key events and call theonClick
lambda when users press the the