When I command+W and try to scroll up and down with the arrow keyes it takes forever and its inconstant. Basically its not working at all.
I just bought the new MacBook Pro 2017 with macOS Sierra 10.12.5.
I restarted laptop and it continued to make the same.
In my other Macbook air, it works just as fine.
Do you have high quality preview turned on?