Add drag threshold for active state

This should make it so that when you clear the canvas, the page goes back to the way it was initially.