···11import {View} from 'react-native'
2233-import {atoms as a, useTheme, type ViewStyleProp} from '#/alf'
33+import {atoms as a, useTheme, type ViewStyleProp, web as webOnly} from '#/alf'
44import {IS_NATIVE, IS_WEB, IS_WEB_TOUCH_DEVICE} from '#/env'
5566export function SubtleHover({
···3333 a.transition_opacity,
3434 t.atoms.bg_contrast_50,
3535 style,
3636+ // Force Safari to composite the overlay on its own GPU layer.
3737+ // This fixes a layout shift that happens due to different subpixel
3838+ // rounding when the overlay is composited on hover.
3939+ webOnly({willChange: 'opacity'}),
3640 {opacity: hover ? opacity : 0},
3741 ]}
3842 />