meh
fix for not correctly setting state for touch
scripted update of code from master at 17edcc6 fix for not correctly setting state for touch