File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -604,12 +604,35 @@ public void OnTouch(Internals.PointerEventArgs e)
604
604
if ( e . Action == PointerActions . Released )
605
605
{
606
606
Expander . _effectsView . Reset ( ) ;
607
+
608
+ // Restore icon color based on current state.
609
+ if ( IsMouseHover )
610
+ {
611
+ if ( Expander . HasVisualStateGroups ( ) )
612
+ {
613
+ UpdateIconColor ( Expander . HeaderIconColor ) ;
614
+ }
615
+ else
616
+ {
617
+ UpdateIconColor ( Expander . HoverIconColor ) ;
618
+ }
619
+ }
620
+ else if ( ! Expander . IsSelected )
621
+ {
622
+ UpdateIconColor ( Expander . HeaderIconColor ) ;
623
+ }
607
624
}
608
625
609
626
if ( e . Action == PointerActions . Cancelled )
610
627
{
611
628
Expander . _effectsView . Reset ( ) ;
612
629
IsMouseHover = false ;
630
+
631
+ // Restore icon color to normal state since mouse hover is reset
632
+ if ( ! Expander . IsSelected )
633
+ {
634
+ UpdateIconColor ( Expander . HeaderIconColor ) ;
635
+ }
613
636
}
614
637
}
615
638
}
You can’t perform that action at this time.
0 commit comments