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:

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

<code>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: {}

}</code>

伊谢尔伦伊谢尔伦2794 days ago954

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