Skip to content

Commit 8be4325

Browse files
HTMLMesh: Remove the +0.5 offset for image (#25930)
1 parent f9035d8 commit 8be4325

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/jsm/interactive/HTMLMesh.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,8 +281,8 @@ function html2canvas( element ) {
281281

282282
x = rect.left - offset.left - 0.5;
283283
y = rect.top - offset.top - 0.5;
284-
width = rect.width + 0.5;
285-
height = rect.height + 0.5;
284+
width = rect.width;
285+
height = rect.height;
286286

287287
context.drawImage( element, x, y, width, height );
288288

0 commit comments

Comments
 (0)