Commit eacb7f2 1 parent 2e7e4c6 commit eacb7f2 Copy full SHA for eacb7f2
File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -80,10 +80,16 @@ function doClip(clipPaths, ctx) {
80
80
function createRoot ( width , height ) {
81
81
var domRoot = document . createElement ( 'div' ) ;
82
82
83
- // domRoot.onselectstart = returnFalse; // 避免页面选中的尴尬
83
+ // domRoot.onselectstart = returnFalse; // Avoid page selected
84
84
domRoot . style . cssText = [
85
85
'position:relative' ,
86
- 'overflow:hidden' ,
86
+ // IOS13 safari probably has a compositing bug (z order of the canvas and the consequent
87
+ // dom does not act as expected) when some of the parent dom has
88
+ // `-webkit-overflow-scrolling: touch;` and the webpage is longer than one screen and
89
+ // the canvas is not at the top part of the page.
90
+ // Check `https://bugs.webkit.org/show_bug.cgi?id=203681` for more details. We remove
91
+ // this `overflow:hidden` to avoid the bug.
92
+ // 'overflow:hidden',
87
93
'width:' + width + 'px' ,
88
94
'height:' + height + 'px' ,
89
95
'padding:0' ,
You can’t perform that action at this time.
0 commit comments