search

Home  >  Q&A  >  body text

javascript - vue2+iscroll5 cannot slide

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: {}
}
伊谢尔伦伊谢尔伦2739 days ago927

reply all(2)I'll reply

  • 高洛峰

    高洛峰2017-06-26 10:58:17

    It is recommended to use vue-iscroll-view

    reply
    0
  • 给我你的怀抱

    给我你的怀抱2017-06-26 10:58:17

    It should be a browser problem, you can try it

    Click twice

    reply
    0
  • Cancelreply