Fixed bugs related to Click and LongClick events
Modified the sample project with demo for Click and LongClick events