Fix intent check bypassed due to init setting

Currently `hasIntent` part of `dragging` would never entered as hasIntent is `undefined`.