File tree Expand file tree Collapse file tree 1 file changed +14
-9
lines changed
maui/src/NavigationDrawer Expand file tree Collapse file tree 1 file changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ internal override bool OnInterceptTouchEvent(MotionEvent? ev)
77
77
switch ( ev . Action )
78
78
{
79
79
case MotionEventActions . Down :
80
- return HandleActionDown ( currentTouchPoint ) ;
80
+ return HandleActionDown ( ev , currentTouchPoint ) ;
81
81
82
82
case MotionEventActions . Up :
83
83
_initialPoint = new Point ( 0 , 0 ) ;
@@ -95,18 +95,23 @@ internal override bool OnInterceptTouchEvent(MotionEvent? ev)
95
95
96
96
#region Private Methods
97
97
98
- private bool HandleActionDown ( Point currentTouchPoint )
98
+ private bool HandleActionDown ( MotionEvent ? ev , Point currentTouchPoint )
99
99
{
100
- _downX = currentTouchPoint . X ;
101
- _downY = currentTouchPoint . Y ;
102
- _initialPoint = currentTouchPoint ;
103
-
104
- if ( DrawerSettings . Position == Position . Left || DrawerSettings . Position == Position . Right )
100
+ if ( ev != null )
105
101
{
106
- return HandleHorizontalActionDown ( currentTouchPoint ) ;
102
+ _downX = ev . GetX ( ) ;
103
+ _downY = ev . GetY ( ) ;
104
+ _initialPoint = currentTouchPoint ;
105
+
106
+ if ( DrawerSettings . Position == Position . Left || DrawerSettings . Position == Position . Right )
107
+ {
108
+ return HandleHorizontalActionDown ( currentTouchPoint ) ;
109
+ }
110
+
111
+ return HandleVerticalActionDown ( currentTouchPoint ) ;
107
112
}
108
113
109
- return HandleVerticalActionDown ( currentTouchPoint ) ;
114
+ return false ;
110
115
}
111
116
112
117
private bool HandleHorizontalActionDown ( Point currentTouchPoint )
You can’t perform that action at this time.
0 commit comments