Switched to mousePressed() function, due to touch devices