Phone Android HTML5 Hardware Acceleration - Canvas

后端 未结 6 1661
醉话见心
醉话见心 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:09

    Ok so I've come up with the HACKIEST solution ever. After my onTouchEnd event has fired, I must do the following

    1. Append changes to the canvas. It'll double-draw
    2. Create a clone of the canvas
    3. remove the canvas, re-add it
    4. Copy the data from the clone over
    

    then the bug disappears... ridicolous.

    I had to get it to work, after removing hardware accel I noticed how clunky jQM feels

提交回复
热议问题