openscad / openscad-playground

OpenSCAD Web Playground
https://ochafik.com/openscad2
Other
76 stars 17 forks source link

disable monaco editor on iOS #31

Closed ochafik closed 2 weeks ago

ochafik commented 2 weeks ago

It's currently impossible to edit source code on an iPhone as Monaco works against Safari Mobile's native text editing (e.g. impossible to get native Copy/Paste/Select All menu).

This PR swaps the editor for a normal textarea if iOS is detected.

Users can override & get the Monaco editor by clicking on "Request Desktop Website" in the page options menu.