Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Completely agree, but I think the solution is simpler: just like a physical knob, don't let it cross over from 100 to 0 and back. If it's 100, you need to drag it back around the centre to get to 0.


if (curLevel == maxLevel && angleFromCenter > 0 && angleFromCenter < 45){ // Ignore } else { // Process normally }




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: