Added basic click-drag detection