Phone Android HTML5 Hardware Acceleration - Canvas

后端 未结 6 1899
醉话见心
醉话见心 2020-12-18 08:45

I am having a strange issue. When I have hardware acceleration enabled, if I am drawing to a canvas element, whatever is drawn on the canvas, will be re-drawn to the top of

6条回答
  •  臣服心动
    2020-12-18 09:25

    I had the same problem. Seems to be caused by jquery mobile css in my case.

    Going into a little more detail to what guya added, go to the jquery.mobile.structure.css file and change this line:

    .ui-content { border-width: 0; overflow: visible; overflow-x: hidden; padding: 15px; }

    to

    .ui-content { border-width: 0; overflow: visible; padding: 15px; }

    Removing the overflow-x: hidden attribute fixes the problem.

    Source: Github / thomasjbradley / signature-pad / Issues

    Edit: Strangely enough, I noticed the problem didn't occur when the canvas width was 256px width or less.

提交回复
热议问题