fix breaking on mouse out
fix onselectstart
adding viewport