Add flag to emulate mobile during preview

Since the is_mobile check was moved to compile-time instead of runtime
in 0a6a441041, we need a way to override
the check when previewing using the 'mobile' flag.

Signed-off-by: kernelkind <kernelkind@gmail.com>
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
kernelkind
2024-05-03 13:10:56 -04:00
committed by William Casarin
parent f9d6161500
commit aacc41e4c2
4 changed files with 34 additions and 6 deletions

View File

@@ -45,6 +45,7 @@ egui_virtual_list = "0.3.0"
[features]
default = []
emulate_mobile = []
profiling = ["puffin", "puffin_egui", "eframe/puffin"]
[profile.small]