Skip to content

Commit 7c44065

Browse files
committed
fix offscreen orbitcontrols
1 parent aae987d commit 7c44065

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

threejs/offscreencanvas-worker-orbitcontrols.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,18 @@ function noop() {
77
class ElementProxyReceiver extends EventDispatcher {
88
constructor() {
99
super();
10+
// because OrbitControls try to set style.touchAction;
11+
this.style = {};
1012
}
1113
get clientWidth() {
1214
return this.width;
1315
}
1416
get clientHeight() {
1517
return this.height;
1618
}
19+
// OrbitControls call these as of r132. Maybe we should implement them
20+
setPointerCapture() { }
21+
releasePointerCapture() { }
1722
getBoundingClientRect() {
1823
return {
1924
left: this.left,

0 commit comments

Comments
 (0)