Fixed nasty bug

by overriding mousePressed and mouseDragged