[library] Fix end EdgeEffect being offset by padding

Fixes #31