File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
1919- ` can_shrink ` property to image widget.
2020- ` mutations ` property to localsignal.
2121- ` eval_ignore ` property to all widgets.
22+ - Touch support to scale widget.
2223
2324### Fixed
2425
Original file line number Diff line number Diff line change @@ -2385,10 +2385,12 @@ pub(super) fn build_gtk_scale(
23852385 scale_dat,
23862386 move |ctrl, event| {
23872387 match event. event_type( ) {
2388- gtk4:: gdk:: EventType :: ButtonPress => {
2388+ gtk4:: gdk:: EventType :: ButtonPress
2389+ | gtk4:: gdk:: EventType :: TouchBegin => {
23892390 scale_dat. borrow_mut( ) . is_being_dragged = true ;
23902391 }
2391- gtk4:: gdk:: EventType :: ButtonRelease => {
2392+ gtk4:: gdk:: EventType :: ButtonRelease
2393+ | gtk4:: gdk:: EventType :: TouchEnd => {
23922394 let mut scale_dat_mut = scale_dat. borrow_mut( ) ;
23932395 scale_dat_mut. is_being_dragged = false ;
23942396
You can’t perform that action at this time.
0 commit comments