How to prevent pull to refresh when draw on Canvas in Android Chrome

Viewed 351

I'm developing a webpage with HTML and JS. And there's a canvas in index.html.

...
</head>
<body>
...
    <canvas class="Wrapper vector-canvas" oncontextmenu="event.preventDefault()" style="width: 125px; 
     height: 95px;"></canvas>
...
</body>

I can draw on canvas using Chrome for PC. But can't not draw with my Android tablet. This is what happen when I touch and move on canvas. The pull to refresh icon was showed up.

How can I prevent this event when I touch the canvas?

0 Answers
Related