Skip to content

Commit dd5d399

Browse files
committed
Restore offscreenTouching check to penStamp
1 parent bc14394 commit dd5d399

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/RenderWebGL.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1919,7 +1919,11 @@ class RenderWebGL extends EventEmitter {
19191919
}
19201920

19211921
const bounds = stampDrawable.getFastBounds();
1922-
bounds.clamp(this._xLeft, this._xRight, this._yBottom, this._yTop);
1922+
// Ideally we wouldn't need to check offscreenTouching at all here, but the camera extensions
1923+
// do too many crazy things to risk changing this control flow.
1924+
if (!this.offscreenTouching) {
1925+
bounds.clamp(this._xLeft, this._xRight, this._yBottom, this._yTop);
1926+
}
19231927
if (bounds.width === 0 || bounds.height === 0) {
19241928
return;
19251929
}

0 commit comments

Comments
 (0)