Alex,
Thanks much for introducing this new feature. I gave it a try and can confirm it does work on my end. Please don’t read the following as me being ungrateful. I am anything but!
I don’t know if this is a problem yet but I think I observed a little issue. When you move the tableView you get moved in your event phase. When the tableView is locked using this new method and you try to move it the tableView up and down it does not move but the moved event phase is still fired. If anyone is watching for “moved” phase and doing things in response this might be a problem.
Other thought is that with
object._view._isVerticalScrollingDisabled = true
object._view._isHorizontalScrollingDisabled = true
which we use we have more control. We can lock horizontal or vertical scrolling as needed. This is perhaps more relevant on a scrollView. There are times when you might want one but not the other so the new setIsLocked() is locking (pun intended! us into an either / or situation…
May I suggest a simple addition to the new API such as the following (last 2 entries)
object:setIsLocked( false ) – no locking
object:setIsLocked( true ) – locked in both directions as it is now
object:setIsLocked( vertical ) – is locked only vertically with free horizontal movement
object:setIsLocked( horizontal ) – is locked only horizontal with free vertically movement
Thank you very much for considering this possibility and looking into the event phase question.
Wishing you and yours all the best and happy holidays.
Regards,
Kerem