top | item 25341109 (no title) Doman | 5 years ago Really cool, but please work a bit on controls for smartphones. Holding a button pops up a browser's menu. discuss order hn newest tomjacobs|5 years ago any webdevs out there, love to help? davidsojevic|5 years ago So generally a quick way to prevent that sort of stuff from happening on mobile is to tack this CSS onto the elements in question (canvas, img, etc): touch-action: none; -ms-touch-action: none; user-select: none; That should prevent any touch related actions and accidental user selection on devices.See MDN for details on each:https://developer.mozilla.org/en-US/docs/Web/CSS/touch-actio...https://developer.mozilla.org/en-US/docs/Web/CSS/user-select load replies (1)
tomjacobs|5 years ago any webdevs out there, love to help? davidsojevic|5 years ago So generally a quick way to prevent that sort of stuff from happening on mobile is to tack this CSS onto the elements in question (canvas, img, etc): touch-action: none; -ms-touch-action: none; user-select: none; That should prevent any touch related actions and accidental user selection on devices.See MDN for details on each:https://developer.mozilla.org/en-US/docs/Web/CSS/touch-actio...https://developer.mozilla.org/en-US/docs/Web/CSS/user-select load replies (1)
davidsojevic|5 years ago So generally a quick way to prevent that sort of stuff from happening on mobile is to tack this CSS onto the elements in question (canvas, img, etc): touch-action: none; -ms-touch-action: none; user-select: none; That should prevent any touch related actions and accidental user selection on devices.See MDN for details on each:https://developer.mozilla.org/en-US/docs/Web/CSS/touch-actio...https://developer.mozilla.org/en-US/docs/Web/CSS/user-select load replies (1)
tomjacobs|5 years ago
davidsojevic|5 years ago
See MDN for details on each:
https://developer.mozilla.org/en-US/docs/Web/CSS/touch-actio...
https://developer.mozilla.org/en-US/docs/Web/CSS/user-select