Fixed math in applySnap. Added bottom-right support