Fix dragging enabled being ignored when returning to default state.
Merge pull request #60 from jasperblues/master

enabledDragging was being ignored when returning to previous state. .
Merge pull request #1 from honcheng/master

Update