SpinView.lockdirection spinview-lockdirection



Specifies whether to allow a change in the spin direction if there is 2D spin set.

When set to 1 , the component identifies the primary drag or swipe direction (horizontal versus vertical) at the start of the gesture. After that, it maintains that direction until the gesture ends. For example, if the user starts a horizontal spin and then decides to continue their drag gesture in a vertical direction, the component does not perform a vertical spin. Instead, it considers only the horizontal movement of the mouse or swipe.

A value of 0 lets a user change the spin direction at any time during the gesture progress. The setting has no effect if the spin set is 1D.

Properties section-65be9301796240e38f31818229da7acc


Default section-bd374ffc5182484faa77a7a3c8fa70f2


Example section-bd6c4249bccf44aab13fee8552f5a8b3