Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
Then I follow the code and find this:
final float transformPos = (float) (child.getLeft() - scrollX) / getClientWidth();
mPageTransformer.transformPage(child, transformPos);
I think these code should be:
final float transformPos = (float) (child.getLeft() - getPaddingLeft() - scrollX) / getClientWidth();
mPageTransformer.transformPage(child, transformPos);
And I recalculate the position like this, the result of position is correct! The center is 0, the left size is -1.0, and the right size is 1.0!