fixed snap-to-side-of-window pixel-density issues