sebastianconcept / poly

Amber demo with polygons and a physics simulator
MIT License
2 stars 1 forks source link

*Add stuff* button needs to be clicked two times #3

Open hhzl opened 10 years ago

hhzl commented 10 years ago

After clicking the Add stuff button a message A thing was added appears but no shape. After clicking the button a second time the shape appears. This is in Firefox 27 on Linux Mint based on Ubuntu 12.04 LTS.

sebastianconcept commented 10 years ago

Yeah but is not two times and the non-action clicks are to be expected at any time.

Cause: when you click on it it generates 4 random numbers for a polygon.

When you have "luck" those numbers form a closed polygon. When you don't it won't add anything.

Too lazy to fix it that the moment (cost/benefit). Added a comment to explain behaviour :)

hhzl commented 10 years ago

OK, maybe somebody on the ML list likes to take this as an exercise....

sebastianconcept commented 10 years ago

Is okay if I close this?

hhzl commented 10 years ago

Yes, as the issue has been fixed with a 'ReadMe' explanation. If the user is made aware of this there is no problem as it is a demo.