mirror of
https://github.com/aljazceru/notedeck.git
synced 2025-12-18 09:04:21 +01:00
scroll: simple fix
Instead of a complicated min scroll distance implementation, we simply disable drag to scroll on carousel to fix vertical scrolling on android
This commit is contained in:
@@ -54,8 +54,11 @@ pub(crate) fn image_carousel(
|
||||
};
|
||||
let mut action = None;
|
||||
|
||||
//let has_touch_screen = ui.ctx().input(|i| i.has_touch_screen());
|
||||
|
||||
ui.add_sized([width, height], |ui: &mut egui::Ui| {
|
||||
egui::ScrollArea::horizontal()
|
||||
.drag_to_scroll(false)
|
||||
.id_salt(carousel_id)
|
||||
.show(ui, |ui| {
|
||||
ui.horizontal(|ui| {
|
||||
|
||||
Reference in New Issue
Block a user