In RTL mode with overflow enabled, Yoga lays out from right to left and items that overflow end up having a negative position. This will contain the offset that need to be applied so that items start at x=0 instead of x=-rtlOffsetX.
| 113 | // contain the offset that need to be applied so that items start at x=0 |
| 114 | // instead of x=-rtlOffsetX. |
| 115 | float ViewNodeScrollState::getRtlOffsetX() const { |
| 116 | return _rtlOffsetX; |
| 117 | } |
| 118 | |
| 119 | static float applyCircularScroll( |
| 120 | int circularRatioInt, float contentOffset, float contentSize, float viewportSize, float pointScale) { |
no outgoing calls
no test coverage detected