Add logging to catch error

Some users are seeing empty moving sets. Why?
This commit is contained in:
Jordan Eldredge 2018-07-28 15:09:15 -07:00
parent 3b9e48ef80
commit 2f0d20bbc8

View file

@ -132,7 +132,17 @@ class WindowManager extends React.Component {
)
};
const box = boundingBox(moving);
let box;
try {
box = boundingBox(moving);
} catch (err) {
console.error(
`Could not construct bounding box for key: ${key}. moving.length is: ${
moving.length
}`
);
throw err;
}
const handleMouseMove = ee => {
const proposedDiff = {