aalavandhaann / blueprint-js

The Javascript es6 version of the original furnishup/blueprint3d. Need some royalty free low poly models for the inventory. Can someone help me with this?
MIT License
506 stars 157 forks source link

Revert "First time adding furniture, mobile mouse operation is not friendly" #20

Closed aalavandhaann closed 5 years ago

aalavandhaann commented 5 years ago

Reverts aalavandhaann/blueprint-js#18. This PR breaks down the functionality on the Desktop. The items are not being added

Thinkia commented 5 years ago

Sorry, I don't know the specific problems;

Can this solve the problem?

floor_item.js
placeInRoom() // Floor Items firstAdd this.userData.firstAdd = true;

item.js clickReleased() if(this.userData.firstAdd) this.userData.firstAdd = false;

clickDragged if(this.userData.firstAdd){ this.moveToPosition(intersection.point, intersection);} else{ this.moveToPosition(intersection.point.sub(this.dragOffset), intersection);}

I'm not sure that's a good idea

aalavandhaann commented 5 years ago

I believe the whole idea of adding furnitures should be done in a different way. Right now we are clicking the "+" button and adding an item. I think it's better to comment clickDragged