Open tarasovladislav opened 2 weeks ago
try this backview.zip
backview.zip Updated so Y movements done to the second cube work as expected (as opposed to rotating in opposite direction). Also reduced the space between the cubes which minimizes the possibility of rotation not working properly (both cubes rotate opposite of Y movement if drag starts from the gap).
This seems to have eliminated the gap problem altogether (add the if statement in mousedown).
mousedownId = e.target.parentNode.id;
if (mousedownId != 'c1' && mousedownId != 'c2')
mousedownId = 'c1';
Hi
How do you think, would it be possible to make something similar what cubingjs has (backView = "side-by-side"). So you have 2nd cube which actually is same cube but from other angle and still can rotate the cube
https://codepen.io/cubing/pen/vYyKBMd