@@ -174,7 +174,7 @@ property_list! (PropertyValueWithGlobal, {
174174 0xa9 GridAutoRows : GridAutoType as Initial default GridAuto :: List ( vec![ TrackSize :: Length ( Length :: Auto ) ] . into( ) ) ;
175175 0xaa GridAutoColumns : GridAutoType as Initial default GridAuto :: List ( vec![ TrackSize :: Length ( Length :: Auto ) ] . into( ) ) ;
176176
177-
177+ // misc
178178 0xd0 ListStyleType : ListStyleTypeType as Inherit default ListStyleType :: Disc ;
179179 0xd1 ListStyleImage : ListStyleImageType as Inherit default ListStyleImage :: None ;
180180 0xd2 ListStylePosition : ListStylePositionType as Inherit default ListStylePosition :: Outside ;
@@ -185,6 +185,7 @@ property_list! (PropertyValueWithGlobal, {
185185 0xd7 AspectRatio : AspectRatioType as Initial default AspectRatio :: Auto ;
186186 0xd8 Contain : ContainType as Initial default Contain :: None ;
187187 0xd9 Content : ContentType as Initial default Content :: None ;
188+ 0xda TouchAction : TouchActionType as Initial default TouchAction :: Auto ;
188189
189190 // wx-spec special properties
190191 0xe0 WxScrollbarX : ScrollbarType as Initial default Scrollbar :: Auto ;
@@ -1729,6 +1730,32 @@ property_value_format! (PropertyValueWithGlobal, {
17291730 } ;
17301731 } } ;
17311732
1733+ <touch_action_pan_x: u8 >:
1734+ "pan-x" -> |_| 3 ;
1735+ | "pan-left" -> |_| 1 ;
1736+ | "pan-right" -> |_| 2 ;
1737+ ;
1738+ <touch_action_pan_y: u8 >:
1739+ "pan-y" -> |_| 3 ;
1740+ | "pan-up" -> |_| 1 ;
1741+ | "pan-down" -> |_| 2 ;
1742+ ;
1743+ touch_action: { { TouchAction
1744+ = "auto" => TouchActionType :: Auto
1745+ | "none" => TouchActionType :: None
1746+ | "manipulation" => TouchActionType :: Manipulation
1747+ | [ <touch_action_pan_x> || <touch_action_pan_y>] -> |( pan_x, pan_y) : ( Option <u8 >, Option <u8 >) | {
1748+ let pan_x = pan_x. unwrap_or( 0 ) ;
1749+ let pan_y = pan_y. unwrap_or( 0 ) ;
1750+ let ges = TouchActionGestures {
1751+ pan_left: ( pan_x & 1 ) > 0 ,
1752+ pan_right: ( pan_x & 2 ) > 0 ,
1753+ pan_up: ( pan_y & 1 ) > 0 ,
1754+ pan_down: ( pan_y & 2 ) > 0 ,
1755+ } ;
1756+ TouchActionType :: Gestures ( ges)
1757+ } ;
1758+ } }
17321759} ) ;
17331760
17341761pub ( crate ) fn split_hv < T : Clone > ( x : Vec < T > ) -> ( T , T ) {
0 commit comments