Imagine a scenario where multiple boxes are stacked on top of each other:
<div style="width: 100%; height: 100px; background-color: red">
stuff
</div>
By clicking or touching them, the background color can be easily changed using CSS (:hover, :focus) or with Javascript/jQuery.
For better user experience, it is important to indicate to users that they can interact by just touching the screen. When a user touches a box while intending to scroll down, the box should subtly change its background color.
In current implementations, jQuery events for click or touch only trigger if the action is a direct click and not incidental touching during scrolling.
What is the best way to detect a touch on the screen that is not a direct click? The objective here is simply to change the background color, whether achieved through CSS or javascript.