File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -85,10 +85,10 @@ smol_str = "0.3"
8585tracing = { version = " 0.1.40" , default-features = false }
8686
8787[dev-dependencies ]
88+ font8x8 = " 0.3.1"
8889image = { version = " 0.25.0" , default-features = false , features = [" png" ] }
8990tracing = { version = " 0.1.40" , default-features = false , features = [" log" ] }
9091tracing-subscriber = { version = " 0.3.18" , features = [" env-filter" ] }
91- font8x8 = " 0.3.1"
9292
9393[target .'cfg(not(target_os = "android"))' .dev-dependencies ]
9494softbuffer = { version = " 0.4.6" , default-features = false , features = [
Original file line number Diff line number Diff line change @@ -141,13 +141,10 @@ impl ApplicationHandler for App {
141141 self . posx = position. x as f32 ;
142142 self . posy = position. y as f32 ;
143143 }
144- match source {
145- PointerSource :: Touch { force, .. } => {
146- if self . has_pressure . is_some ( ) {
147- self . has_pressure = force. map ( |x| x. normalized ( ) as f32 ) ;
148- }
149- } ,
150- _ => { } ,
144+ if let PointerSource :: Touch { force, .. } = source {
145+ if self . has_pressure . is_some ( ) {
146+ self . has_pressure = force. map ( |x| x. normalized ( ) as f32 ) ;
147+ }
151148 }
152149 } ,
153150 WindowEvent :: RedrawRequested => {
You can’t perform that action at this time.
0 commit comments