Fix isMouseActionButton function

Use the button property to check if the event is a mouse action (left
button pressed).
Don't simulate click/dblclick events for non action events