fix(android/button): possible incorrect button visual state (#7190)

This commit is contained in:
Yurii Cherniavskyi
2019-05-08 08:51:40 +03:00
committed by Martin Yankov
parent 4f79d2e2a1
commit 2a023609f5

View File

@ -91,6 +91,7 @@ export class Button extends ButtonBase {
this._highlightedHandler = this._highlightedHandler || ((args: TouchGestureEventData) => { this._highlightedHandler = this._highlightedHandler || ((args: TouchGestureEventData) => {
switch (args.action) { switch (args.action) {
case TouchAction.up: case TouchAction.up:
case TouchAction.cancel:
this._goToVisualState("normal"); this._goToVisualState("normal");
break; break;
case TouchAction.down: case TouchAction.down: