javascript - vue2+iscroll5 cannot slide
伊谢尔伦
伊谢尔伦 2017-06-26 10:56:17
0
2
940

Using Vue2 iscroll5, the initialization can be completed, but it cannot slide at all in Google Chrome mobile mode, and it slides normally in non-mobile mode.
The code that exactly follows the official example is as follows:

import IScroll from 'iscroll';
export default {
    name: 'app',
    data() {
        return {
            msg: []
        }
    },
    mounted: function() {
        this._initScroll();
    },
    methods: {
        _initScroll() {
            this.iscroll = new IScroll(this.$refs.wrap);
        }
    },
    components: {}
}
伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(2)
小葫芦

It is recommended to use vue-iscroll-view

给我你的怀抱

It should be a browser problem, you can try it

Click twice

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template