You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 1, 2024. It is now read-only.
bool up;
bool down;
bool isTurnY;
int ScreenHeight = 400;
double valueY = 2;
void PanGestureRecognizer_PanUpdated(object sender, PanUpdatedEventArgs e)
{
Debug.WriteLine("Y --> " + e.TotalY);
switch (e.StatusType)
{
case GestureStatus.Running:
if (e.TotalY >= 5 || e.TotalY <= -5 && !isTurnY)
{
isTurnY = true;
}
if (isTurnY)
{
if (e.TotalY <= valueY)
{
up = true;
}
if (e.TotalY >= valueY)
{
down = true;
}
}
if (up)
{
var height = ScreenHeight - Math.Abs(e.TotalY) < 65 ? 65 : ScreenHeight - Math.Abs(e.TotalY);
BottomSheet.HeightRequest = height;
}
else
{
var height = Math.Abs(e.TotalY) > ScreenHeight ? ScreenHeight : Math.Abs(e.TotalY);
BottomSheet.HeightRequest = height;
}
break;
case GestureStatus.Completed:
break;
}
}
}
Debug Value e.TotalY
Expected Behavior
Y --> 314.999993172559
Y --> 314.999993172559
Y --> 314.999993172559
Y --> 314.999993172559
Y --> 314.999993172559
Y --> 314.999993172559
Y --> 314.999993172559
Y --> 314.999993172559
Actual Behavior
Y --> 277.272721263003
Y --> 314.999993172559
Y --> 277.727266707696
Y --> 316.569373465248
Y --> 278.387556110999
Y --> 318.387555244022
Y --> 279.751192445079
Y --> 319.545447619493
Basic Information
Version with issue: Not Tested below 4.8
Last known good version: None
Platform Target Frameworks:
iOS: 14.4 work as expected
Android: All
The text was updated successfully, but these errors were encountered:
Thanks for the code sample, but I'm not sure I understand the problem. could you please explain a bit more in the description? thanks
If We pan On android up to bottom or bottom to up at any point we stop but not lift finger from a screen then it gives me multiple values not one single value where i stopped pan
Description
PanGesture On android Updating Two Value On the same point
Steps to Reproduce
##Code
code Behind
Debug Value e.TotalY
Expected Behavior
Actual Behavior
Basic Information
The text was updated successfully, but these errors were encountered: