hmans / three-elements

Web Components-powered custom HTML elements for building Three.js-powered games and interactive experiences. 🎉
https://three-elements.hmans.co
MIT License
398 stars 14 forks source link

Projected pointer position isn't recalculated when pointer doesn't move #145

Open canadaduane opened 3 years ago

canadaduane commented 3 years ago

In the pointer-events example, there is a set of 4 polygons rotating about the Y axis. If you hover the mouse pointer over a polygon and then click many times (without moving the pointer) the 3D projected position of the mouse pointer is calculated incorrectly. I believe it may be because it assumes that if the mouse pointer hasn't moved, some part of the calculation can be cached?