fixed encoding
reverse drag orientation