Fixed text selection bug
Mouse events now working properly in firefox