Prevent text selection when resizing