fix: introduced lock-direction of 2 to indicate locking left and right direction
Previously, the lock direction indicated either left or right. Now an additional value (2
) indicates locking both directions. This value is utilized when the current item is the first and the last item, i.e., there's only one item.