#3: Script is using trackpad settings pane, which is always available. Added check to change direction only to the desired state.