From c9ec35af84bd29322caefbebcb93a33f90043ecd Mon Sep 17 00:00:00 2001 From: xeolabs Date: Tue, 20 Sep 2016 20:08:23 +0200 Subject: [PATCH] Fixed picking in pickFlyOrbit plugin --- src/plugins/node/cameras/pickFlyOrbit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/node/cameras/pickFlyOrbit.js b/src/plugins/node/cameras/pickFlyOrbit.js index c1957c77..49373936 100644 --- a/src/plugins/node/cameras/pickFlyOrbit.js +++ b/src/plugins/node/cameras/pickFlyOrbit.js @@ -285,7 +285,7 @@ require([ canvas.addEventListener('DOMMouseScroll', mouseWheel, true); function pick(canvasX, canvasY) { - scene.pick(canvasX, canvasY, { rayPick: true }); + scene.pick({ canvasPos :[canvasX, canvasY], rayPick: true }); } var scene = this.getScene();