Question: I have a strange problem on a small page I made.

When the content extends the height of the browser and I scroll down fast, the pixelated box appears for a split of a second and then goes away.

[![](https://i.imgur.com/RVALU4H.png "Hosted by imgur.com")](https://imgur.com/RVALU4H)  

Why is this happening and how can I fix this?

Answer: 
The short answer is you can't.

The long answer is you can try to put a "minimum" and a "maximum" member, and check that the value falls in the range between the two... or some other similar trick.
If you write DoSomething(74) statement in your code modern compiler generate warning saying DoSomething expect enum but integer is passed.

But if you are passing a value from user input where any value can be passed to DoSomething() then you will have to take care as other advised.