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 was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
[android] disabling gestures while animation is in progress #9172
Was able to reproduce the issue. Additional note is when disabling gestures up front and doing an animation, you can still interrupt the animation. This shouldn't happen.
@tobrun I found an issue. In MapGestureDetector#onScroll() condition if (!trackingSettings.isScrollGestureCurrentlyEnabled()) is being checked too late and animation is being canceled inside if (!scrollInProgress) condition.
Simply moving
if (!trackingSettings.isScrollGestureCurrentlyEnabled()) {
return false;
}
Activity
tobrun commentedon Jun 2, 2017
Was able to reproduce the issue. Additional note is when disabling gestures up front and doing an animation, you can still interrupt the animation. This shouldn't happen.
LukasPaczos commentedon Jun 2, 2017
@tobrun I found an issue. In
MapGestureDetector#onScroll()conditionif (!trackingSettings.isScrollGestureCurrentlyEnabled())is being checked too late and animation is being canceled insideif (!scrollInProgress)condition.Simply moving
to the top of
onScroll()method fixes the issue.tobrun commentedon Jun 2, 2017
noticed the same myself 😉 thanks @LukasPaczos 🚀
LukasPaczos commentedon Jun 2, 2017
@tobrun could you create a PR with this fix? I don't have a setup to do so unfortunately.
tobrun commentedon Jun 2, 2017
closed with #9173