[bp-snap-to-grid] Bug fix

Fix the misalignment issue when scrolling.