start working on better mobile support

This commit is contained in:
Simon Gardling
2022-04-22 14:18:24 -04:00
parent 61c26001b4
commit 22d1be59f5
4 changed files with 31 additions and 3 deletions

View File

@@ -101,7 +101,9 @@ impl Default for FunctionEntry {
impl FunctionEntry {
/// Creates edit box for [`FunctionEntry`] to edit function settings and string.
/// Returns whether or not this function was marked for removal.
pub fn function_entry(&mut self, ui: &mut egui::Ui, can_remove: bool, i: usize) -> bool {
pub fn function_entry(
&mut self, ui: &mut egui::Ui, can_remove: bool, i: usize, mobile: bool,
) -> bool {
let output_string = self.autocomplete.string.clone();
self.update_string(&output_string);
@@ -727,6 +729,7 @@ mod tests {
do_extrema: false,
do_roots: false,
plot_width: pixel_width,
is_mobile: false,
}
}