Touch and mouse event compatible slider