Android Native Browser duplicating HTML5 canvas (fine in chrome)

后端 未结 4 1570
难免孤独
难免孤独 2020-12-31 09:47

This is a weird issue that I am only experiencing on a Native browser on Samsung Galaxy Tab 2 and Galaxy S2 in the native browser.

This has also been tested on othe

4条回答
  •  甜味超标
    2020-12-31 10:17

    remove overflow property from all canvas parents,probably we don’t need this property on touch devices:

    $("canvas").parents("*").css("overflow", "visible");
    

    It is well explained at http://slash-system.com/en/how-to-fix-android-html5-canvas-issues/

提交回复
热议问题