Updated demo

updated demo code and set a default value of true for the pan gesture
being enabled by default.
rotation issue