Post

This is how switches on iOS behave in general: you can tap it (to toggle) or grab it (to then drag the thumb around). Dragging the thumb around does not affect scroll.

<input type="checkbox" switch style="touch-action: pan-y" /> wouldn’t you expect that this allows panning on the y axis? we got user feedback about broken scrolls because they unintentionally started their scroll on a switch checkbox and there seems to be no opt out

Oh, I see. When testing things in a native iOS app like Settings, you _can_ initiate a scroll when the first tap on the screen happens to be over a switch control. In Safari you can’t :-/ Seems to me like the engine should be able to figure that out all by itself.

0 reposts2 likes