(fix) added drag detection