File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
resources/views/account/accept Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change 117117 // https://github.com/szimek/signature_pad#handling-high-dpi-screens
118118 // (This also causes canvas to be cleared.)
119119 function resizeCanvas () {
120- console .log (' resizeCanvas' );
121120 // When zoomed out to less than 100%, for some very strange reason,
122121 // some browsers report devicePixelRatio as less than 1
123122 // and only part of the canvas is cleared then.
124- let devicePixelRatio = window .devicePixelRatio ;
125- console .log ({devicePixelRatio})
126- var ratio = Math .max (devicePixelRatio || 1 , 1 );
123+ var ratio = Math .max (window .devicePixelRatio || 1 , 1 );
127124 canvas .width = canvas .offsetWidth * ratio;
128125 canvas .height = canvas .offsetHeight * ratio;
129126 canvas .getContext (" 2d" ).scale (ratio, ratio);
You can’t perform that action at this time.
0 commit comments