'Snap to pixel grid' not working as intended

Hi! When I want to snap to the grid inside a frame it seems doesn’t work at all. But when I move it outside of the frame it is working great. What’s the reason? Thanks :grinning:

Youtube video example