ElemeFE / mint-ui

Mobile UI elements for Vue.js
http://mint-ui.github.io/#!/en
MIT License
16.55k stars 3.55k forks source link

[Bug Report] TabContainer组件滑动异常 #1414

Open jaxonly opened 6 years ago

jaxonly commented 6 years ago

Mint UI version

2.2.13

OS/Browsers version

All

Vue version

2.5.2

Reproduction Link

https://www.maobotv.com/moblie/index.html#/rate/anchor

Steps to reproduce

项目已上线,地址

复现步骤: 向左滑动到一半后,手指向下滑出屏幕

What is Expected?

正常切换Tab

What is actually happening?

页面停留在两个Tab中间不触发touchEnd。

可否通过如下方式在滑出页面时强制触发touchEnd

        if (e.changedTouches[0].pageY <= 0) {
            e.preventDefault();
            that._unbind("touchmove", window);
            that.dispatchEvent(new Event("touchEnd"));
            return;
        }
ghost commented 5 years ago

tabContainer往前swipe会莫名闪烁,可否一并解决了

jaxonly commented 5 years ago

已经在自己fork版本中解决,当官方迟迟没有接受pr,已经取消pr