added default mousepos for mousehandler, changed pos to float calculation