Added mouse action gesture function