fix flip event handling
Merge pull request #11 from jlongster/master

fix flip event handling