瀏覽代碼

Reject user interaction until animation stoped (#3673)

Thememont 6 年之前
父節點
當前提交
2c0fa0eda6
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3
    0
      android/app/src/main/java/com/reactnativenavigation/views/LeftButton.java

+ 3
- 0
android/app/src/main/java/com/reactnativenavigation/views/LeftButton.java 查看文件

@@ -52,6 +52,9 @@ class LeftButton extends MaterialMenuDrawable implements View.OnClickListener {
52 52
 
53 53
     @Override
54 54
     public void onClick(View v) {
55
+        if (isRunning()) {
56
+            return;
57
+        }
55 58
         if (isBackButton()) {
56 59
             handleBackButtonClick();
57 60
         } else if (isSideMenuButton()) {